24 #ifndef _QORE_QORECONDITION_H
26 #define _QORE_QORECONDITION_H
31 #include <qore/QoreThreadLock.h>
46 DLLLOCAL QoreCondition& operator=(
const QoreCondition&);
66 DLLEXPORT
int wait(pthread_mutex_t *m);
74 DLLEXPORT
int wait(pthread_mutex_t *m,
int timeout_ms);
82 return wait(&l->ptm_lock);
92 return wait(&l->ptm_lock, timeout_ms);
111 return wait(&l, timeout_ms);
115 #endif // QORE_CONDITION
DLLLOCAL int wait(QoreThreadLock &l, int timeout_ms)
blocks a thread on a lock for a certain number of milliseconds until the condition is signaled ...
Definition: QoreCondition.h:110
DLLLOCAL int wait(QoreThreadLock &l)
blocks a thread on a lock until the condition is signaled
Definition: QoreCondition.h:100
DLLLOCAL int wait(QoreThreadLock *l)
blocks a thread on a lock until the condition is signaled
Definition: QoreCondition.h:81
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:37
DLLEXPORT int broadcast()
singles all threads blocked on this condition to wake up
DLLEXPORT ~QoreCondition()
destroys the condition object
DLLLOCAL int wait(QoreThreadLock *l, int timeout_ms)
blocks a thread on a lock for a certain number of milliseconds until the condition is signaled ...
Definition: QoreCondition.h:91
provides a mutually-exclusive thread lock
Definition: QoreThreadLock.h:41
DLLEXPORT QoreCondition()
creates the condition object
DLLEXPORT int wait(pthread_mutex_t *m)
blocks a thread on a mutex until the condition is signaled