Counter with atomic increment/decrement methods.
More...
#include <AtomicCounter.h>
Counter with atomic increment/decrement methods.
This implementation uses GCC compiler intrinsics (also supported on clang).
bool molecular::util::GccAtomicCounter::CheckZero |
( |
| ) |
|
|
inline |
void molecular::util::GccAtomicCounter::Decrement |
( |
| ) |
|
|
inline |
Decrements Counter by one.
bool molecular::util::GccAtomicCounter::DecrementCheckZero |
( |
| ) |
|
|
inline |
Decrements counter and checks for zero.
- Returns
- true if counter reaches zero.
void molecular::util::GccAtomicCounter::Increment |
( |
| ) |
|
|
inline |
Increments Counter by one.
The documentation for this class was generated from the following file:
- /home/travis/build/cmdrf/molecular/molecular-util/molecular/util/AtomicCounter.h