#include <atomicAdjust.h>
Static Public Member Functions | |
int | inc (int &var) |
Atomically increments the indicated variable and returns the new value. | |
int | dec (int &var) |
Atomically decrements the indicated variable and returns the new value. | |
int | set (int &var, int new_value) |
Atomically changes the indicated variable and returns the original value. |
Some platforms require a bit more work than others to guarantee that a multibyte value is changed in one atomic operation.
Definition at line 41 of file atomicAdjust.h.
|
Atomically decrements the indicated variable and returns the new value.
Definition at line 49 of file atomicAdjust.I. References AtomicAdjustDummyImpl::set(). |
|
Atomically increments the indicated variable and returns the new value.
Definition at line 34 of file atomicAdjust.I. References AtomicAdjustDummyImpl::dec(), and INLINE. |
|
Atomically changes the indicated variable and returns the original value.
Definition at line 64 of file atomicAdjust.I. |