Atomic counter is a class that allows perform counting in thread safe way.
More...
#include <booster/booster/atomic_counter.h>
Atomic counter is a class that allows perform counting in thread safe way.
booster::atomic_counter::atomic_counter |
( |
long |
v | ) |
|
|
explicit |
Create a counter with initial value v
booster::atomic_counter::operator long |
( |
| ) |
const |
|
inline |
Return current value - atomically
long booster::atomic_counter::operator++ |
( |
| ) |
|
|
inline |
Increment and return the result after increment atomically
long booster::atomic_counter::operator-- |
( |
| ) |
|
|
inline |
Decrement and return the result after decrement atomically
The documentation for this class was generated from the following file: