SHOGUN
4.2.0
|
brief This class implements a thread-safe counter used for reference counting.
Definition at line 18 of file RefCount.h.
Public Member Functions | |
RefCount (int32_t ref_start=0) | |
int32_t | ref () |
int32_t | unref () |
int32_t | ref_count () |
Public Attributes | |
int32_t | rc |
CLock | lock |
RefCount | ( | int32_t | ref_start = 0 | ) |
Constructor
ref_start | starting value for counter |
Definition at line 25 of file RefCount.h.
int32_t ref | ( | ) |
int32_t ref_count | ( | ) |
int32_t unref | ( | ) |
CLock lock |
the lock
Definition at line 52 of file RefCount.h.
int32_t rc |
reference count
Definition at line 49 of file RefCount.h.