32#ifndef _QORE_CLASS_CONDITION_H 
   34#define _QORE_CLASS_CONDITION_H 
   37#include <qore/QoreCondition.h> 
   38#include <qore/AbstractSmartLock.h> 
   39#include <qore/SmartMutex.h> 
   49        return m->extern_wait(&cond, xsink, timeout);
 
   51    DLLLOCAL 
int wait(AbstractSmartLock *m, 
ExceptionSink *xsink) {
 
   52        return m->extern_wait(&cond, xsink);
 
   54    DLLLOCAL 
int signal() {
 
   57    DLLLOCAL 
int broadcast() {
 
   58        return cond.broadcast();
 
   60    DLLLOCAL 
int wait_count(AbstractSmartLock *m) {
 
   61        return m->cond_count(&cond);
 
   65    DLLLOCAL 
virtual ~Condition() {}
 
the base class for all data to be used as private data of Qore objects
Definition AbstractPrivateData.h:44
 
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition ExceptionSink.h:50
 
defines a Qore-language class
Definition QoreClass.h:310
 
a thread condition class implementing a wrapper for pthread_cond_t
Definition QoreCondition.h:45
 
contains constants, classes, and subnamespaces in QoreProgram objects
Definition QoreNamespace.h:65
 
unsigned qore_classid_t
used for the unique class ID for QoreClass objects
Definition common.h:85
 
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:266