#include <AtomicCount.h>
Inheritance diagram for AtomicCount:
Public Methods | |
AtomicCount () | |
Create a new AtomicCount, initialized to a value of 1. | |
~AtomicCount () | |
Destroy a new AtomicCount. | |
void | increment () |
Increment and return the current value. | |
bool | decrement () |
Decrement and return the current value, return true if the count has reached 0. |