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