#include <ArCondition.h>
Public Types | |
| enum | { STATUS_FAILED = 1, STATUS_FAILED_DESTROY, STATUS_FAILED_INIT, STATUS_WAIT_TIMEDOUT, STATUS_WAIT_INTR, STATUS_MUTEX_FAILED_INIT, STATUS_MUTEX_FAILED } |
| typedef pthread_cond_t | CondType |
Public Member Functions | |
| ArCondition () | |
| Constructor. | |
| int | broadcast () |
| Broadcast a signal to all threads waiting. | |
| const char * | getError (int messageNumber) const |
| Translate error into string. | |
| int | signal () |
| Signal the thread waiting. | |
| int | timedWait (unsigned int msecs) |
| Wait for a signal for a period of time in milliseconds. | |
| int | wait () |
| Wait for a signal. | |
| virtual | ~ArCondition () |
| Desctructor. | |
Protected Attributes | |
| CondType | myCond |
| bool | myFailedInit |
| ArMutex | myMutex |
Static Protected Attributes | |
| static ArStrMap | ourStrMap |
|
1.4.2