LibTmsApi
2.0.0
|
Thread conditional boolean. More...
#include <BCondInt.h>
Public Member Functions | |
BCondBool () | |
~BCondBool () | |
int | set () |
Set value. Wakes waiting. More... | |
int | clear () |
Clear Value. More... | |
int | value () |
Current value. More... | |
int | wait () |
Wait until value is true. More... | |
int | timedWait (int timeOutUs) |
Wait until set, with timeout. More... | |
operator int () | |
Private Attributes | |
pthread_mutex_t | omutex |
pthread_cond_t | ocond |
int | ovalue |
Thread conditional boolean.
BCondBool::BCondBool | ( | ) |
BCondBool::~BCondBool | ( | ) |
int BCondBool::clear | ( | ) |
Clear Value.
|
inline |
int BCondBool::set | ( | ) |
Set value. Wakes waiting.
int BCondBool::timedWait | ( | int | timeOutUs | ) |
Wait until set, with timeout.
int BCondBool::value | ( | ) |
Current value.
int BCondBool::wait | ( | ) |
Wait until value is true.
|
private |
|
private |
|
private |