Atomic integer variable.
| void |
Assign a new value atomically. | |||
| int |
Atomically get the current value. | |||
| void |
Add an integer value atomically. |
Assign a new value atomically.
void set (int val)
| val : | the value to be assigned. |
Atomically get the current value.
int get ()
Add an integer value atomically.
void add (int a)
| a : | the integer value to add. |