32 #ifndef _QORE_QC_AUTOLOCK_H
34 #define _QORE_QC_AUTOLOCK_H
37 #include "qore/intern/QC_Mutex.h"
48 DLLLOCAL QoreAutoLock(
class SmartMutex *mt,
class ExceptionSink *xsink) {
61 DLLLOCAL
virtual void destructor(
class ExceptionSink *xsink) {
67 return m->grab(xsink);
70 return m->release(xsink);
72 DLLLOCAL
int trylock() {
the base class for all data to be used as private data of Qore objects
Definition: AbstractPrivateData.h:44
virtual DLLLOCAL void deref()
decrements the reference count of the object without the possibility of throwing a Qore-language exce...
Definition: AbstractPrivateData.h:65
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:48
defines a Qore-language class
Definition: QoreClass.h:249
contains constants, classes, and subnamespaces in QoreProgram objects
Definition: QoreNamespace.h:65
DLLEXPORT bool ROdereference() const
atomically decrements the reference count
unsigned qore_classid_t
used for the unique class ID for QoreClass objects
Definition: common.h:79