class AtomicInt
MyCpp::AtomicInt

Atomic integer variable.

Methods
void
set (int val)
Assign a new value atomically.
int
get ()
Atomically get the current value.
void
add (int a)
Add an integer value atomically.
set

Assign a new value atomically.

void set (int val)
val :  the value to be assigned.
get

Atomically get the current value.

int get ()
add

Add an integer value atomically.

void add (int a)
a :  the integer value to add.