32 #ifndef _QORE_CLASS_CONDITION_H 34 #define _QORE_CLASS_CONDITION_H 37 #include <qore/QoreCondition.h> 38 #include "qore/intern/AbstractSmartLock.h" 39 #include "qore/intern/SmartMutex.h" 51 DLLLOCAL
virtual ~Condition() {}
55 return m->extern_wait(&cond, xsink, timeout);
57 DLLLOCAL
int wait(AbstractSmartLock *m,
ExceptionSink *xsink) {
58 return m->extern_wait(&cond, xsink);
60 DLLLOCAL
int signal() {
63 DLLLOCAL
int broadcast() {
66 DLLLOCAL
int wait_count(AbstractSmartLock *m) {
67 return m->cond_count(&cond);
71 #endif // _QORE_CLASS_CONDITION_H the base class for all data to be used as private data of Qore objects
Definition: AbstractPrivateData.h:44
contains constants, classes, and subnamespaces in QoreProgram objects
Definition: QoreNamespace.h:64
DLLEXPORT int signal()
signals a single waiting thread to wake up
a thread condition class implementing a wrapper for pthread_cond_t
Definition: QoreCondition.h:45
DLLEXPORT int broadcast()
singles all threads blocked on this condition to wake up
defines a Qore-language class
Definition: QoreClass.h:239
unsigned qore_classid_t
used for the unique class ID for QoreClass objects
Definition: common.h:79
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:46
long long int64
64bit integer type, cannot use int64_t here since it breaks the API on some 64-bit systems due to equ...
Definition: common.h:260