Atomic integer.
More...
#include <AtomicInt.hpp>
bool Raul::AtomicInt::compare_and_exchange |
( |
int |
old, |
|
|
int |
val |
|
) |
| |
|
inline |
Set value to val iff current value is old.
- Returns
- true iff set succeeded.
int Raul::AtomicInt::exchange_and_add |
( |
int |
val | ) |
|
|
inline |
Add val to value.
- Returns
- value immediately before addition took place.
bool Raul::AtomicInt::decrement_and_test |
( |
| ) |
|
|
inline |
Decrement value.
- Returns
- true if value is now 0, otherwise false.
The documentation for this class was generated from the following file: