|
Qore Programming Language
0.8.3
|
a thread condition class implementing a wrapper for pthread_cond_t More...
#include <QoreCondition.h>
Public Member Functions | |
| DLLEXPORT | QoreCondition () |
| creates the condition object | |
| DLLEXPORT | ~QoreCondition () |
| destroys the condition object | |
| DLLEXPORT int | signal () |
| signals a single waiting thread to wake up | |
| DLLEXPORT int | broadcast () |
| singles all threads blocked on this condition to wake up | |
| DLLEXPORT int | wait (pthread_mutex_t *m) |
| blocks a thread on a mutex until the condition is signaled | |
| DLLEXPORT int | wait (pthread_mutex_t *m, int timeout_ms) |
| blocks a thread on a mutex for a certain number of milliseconds until the condition is signaled | |
| DLLLOCAL int | wait (QoreThreadLock *l) |
| blocks a thread on a lock until the condition is signaled | |
| 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 | |
| DLLLOCAL int | wait (QoreThreadLock &l) |
| blocks a thread on a lock until the condition is signaled | |
| 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 | |
a thread condition class implementing a wrapper for pthread_cond_t
all threads that block on a given QoreCondition object should use the same mutex or QoreThreadLock object for blocking
| DLLEXPORT int QoreCondition::wait | ( | pthread_mutex_t * | m | ) |
blocks a thread on a mutex until the condition is signaled
| m | the mutex to wait on |
Referenced by wait().
| DLLEXPORT int QoreCondition::wait | ( | pthread_mutex_t * | m, |
| int | timeout_ms | ||
| ) |
blocks a thread on a mutex for a certain number of milliseconds until the condition is signaled
| m | the mutext to wait on |
| timeout_ms | the timeout value is milliseconds |
| DLLLOCAL int QoreCondition::wait | ( | QoreThreadLock * | l | ) | [inline] |
blocks a thread on a lock until the condition is signaled
| l | the QoreThreadLock to wait on |
References wait().
| DLLLOCAL int QoreCondition::wait | ( | QoreThreadLock * | l, |
| int | timeout_ms | ||
| ) | [inline] |
blocks a thread on a lock for a certain number of milliseconds until the condition is signaled
| l | the QoreThreadLock to wait on |
| timeout_ms | the timeout value is milliseconds |
References wait().
| DLLLOCAL int QoreCondition::wait | ( | QoreThreadLock & | l | ) | [inline] |
blocks a thread on a lock until the condition is signaled
| l | the QoreThreadLock to wait on |
References wait().
| DLLLOCAL int QoreCondition::wait | ( | QoreThreadLock & | l, |
| int | timeout_ms | ||
| ) | [inline] |
blocks a thread on a lock for a certain number of milliseconds until the condition is signaled
| l | the QoreThreadLock to wait on |
| timeout_ms | the timeout value is milliseconds |
References wait().