32 #ifndef _QORE_QOREREFERENCECOUNTER_H
34 #define _QORE_QOREREFERENCECOUNTER_H
37 #include <qore/macros.h>
46 mutable std::atomic_int references;
provides atomic reference counting to Qore objects
Definition: QoreReferenceCounter.h:44
DLLEXPORT void ROreference() const
atomically increments the reference count
DLLEXPORT int reference_count() const
gets the reference count
DLLEXPORT bool ROdereference() const
atomically decrements the reference count
DLLEXPORT bool is_unique() const
returns true if the reference count is 1
DLLEXPORT ~QoreReferenceCounter()
destroys the reference counter object
DLLEXPORT QoreReferenceCounter()
creates the reference counter object
provides a mutually-exclusive thread lock
Definition: QoreThreadLock.h:49