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