|
gloox
1.0.1
|
#include <atomicrefcount.h>
Public Member Functions | |
| AtomicRefCount () | |
| int | increment () |
| int | decrement () |
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 33 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.
1.8.1.2