UCommon
|
Generic atomic class for referencing atomic objects and static functions. More...
#include <atomic.h>
Data Structures | |
class | counter |
Atomic counter class. More... | |
class | spinlock |
Atomic spinlock class. More... | |
Static Public Member Functions | |
static bool | is_lockfree (void) |
Generic atomic class for referencing atomic objects and static functions.
We have an atomic counter and spinlock, and in the future we may add other atomic classes and atomic manipulations needed to create lockfree data structures. The atomic classes use mutexes if no suitable atomic code is available.