24 #include <core/utils/refcount.h> 25 #include <core/threading/mutex.h> 26 #include <core/exceptions/software.h> 52 ref_mutex =
new Mutex();
106 if ( refc > 0 ) --refc;
void unref()
Decrement reference count and conditionally delete this instance.
unsigned int refcount()
Get reference count for this instance.
Fawkes library namespace.
void unlock()
Unlock the mutex.
void ref()
Increment reference count.
virtual ~RefCount()
Destructor.
void lock()
Lock this mutex.
Mutex mutual exclusion lock.