Fermat
|
an atomic integer class
#include <atomics.h>
Public Methods | |
AtomicInt () | |
constructor | |
AtomicInt (const intT value) | |
destructor | |
intT | increment () |
increment by one | |
intT | decrement () |
decrement by one | |
intT | operator++ (int) |
increment by one | |
intT | operator-- (int) |
decrement by one | |
intT | operator++ () |
increment by one | |
intT | operator-- () |
decrement by one | |
intT | operator+= (const intT v) |
increment by v | |
intT | operator-= (const intT v) |
decrement by v | |
bool | operator== (const intT value) |
compare | |
bool | operator!= (const intT value) |
bool | operator>= (const intT value) |
bool | operator<= (const intT value) |
bool | operator> (const intT value) |
bool | operator< (const intT value) |
Public Members | |
volatile intT | m_value |