gloox
1.0.16
|
#include <atomicrefcount.h>
Public Member Functions | |
AtomicRefCount () | |
int | increment () |
int | decrement () |
void | reset () |
A simple implementation of a thread safe 32-bit reference count. Native functions are used where possible. When not available, a mutex is used for locking and unlocking.
Definition at line 34 of file atomicrefcount.h.
AtomicRefCount | ( | ) |
Contructs a new atomic reference count.
Definition at line 37 of file atomicrefcount.cpp.
int decrement | ( | ) |
Decrements the reference count, and returns the new value.
Definition at line 58 of file atomicrefcount.cpp.
int increment | ( | ) |
Increments the reference count, and returns the new value.
Definition at line 42 of file atomicrefcount.cpp.
void reset | ( | ) |