SHOGUN
v3.0.0
|
brief This class implements a thread-safe counter used for reference counting.
Definition at line 16 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 23 of file RefCount.h.
int32_t ref | ( | ) |
int32_t ref_count | ( | ) |
int32_t unref | ( | ) |
CLock lock |
the lock
Definition at line 50 of file RefCount.h.
int32_t rc |
reference count
Definition at line 47 of file RefCount.h.