1. Kink Programming Language
  2. Untitled project
  3. kink
  4. Issues
Issue #435 wontfix

Improve get-var and set-var sequences for better performance

Taku Miyakawa
created an issue

Value class consists of these fields.

Value {
    volatile int state;
    VarSet varSet;


  1. CAS 0 to 1 on the state; if failed, Thread.yield and redo
  2. Write a variable to the current varSet, or set a new VarSet to varSet
  3. Set 0 on the state


  1. Read varSet
  2. Read a variable from the varSet

Comments (2)

  1. Log in to comment