- public int @get (ref int atomic)
            
            
Gets the current value of atomic.
            
 
          - public void @set (ref int atomic, int newval)
            
            
Sets the value of atomic to newval.
            
 
          - public void add (ref int atomic, int val)
            
            
Atomically adds val to the value of atomic.
              
            
 
          - public int exchange_and_add (ref int atomic, int val)
              
            
This function existed before 
                add returned the prior value of the integer (which it now does).
              
          - public bool compare_and_exchange (ref int atomic, int oldval, int newval)
            
            
Compares atomic to oldval and, if equal, 
                sets it to newval.
            
 
          - public void inc (ref int atomic)
            
            
Increments the value of atomic by 1.
            
 
          - public bool dec_and_test (ref int atomic)
            
            
Decrements the value of atomic by 1.