This class provides an object-oriented thread condition interface.
More...
|
| Condition () |
| Constructor.
|
|
virtual | ~Condition () |
| Destructor.
|
|
virtual int | wait (Mutex *mutex) |
| Wait on a mutex.
|
|
virtual int | wait (Mutex *mutex, unsigned long int ms) |
| Wait on a mutex for a given amount of time (ms) More...
|
|
virtual int | signal () |
| Signal a SINGLE thread to wake if it's waiting. More...
|
|
virtual int | broadcast () |
| Wake all threads waiting on this condition. More...
|
|
This class provides an object-oriented thread condition interface.
◆ broadcast()
virtual int OpenThreads::Condition::broadcast |
( |
| ) |
|
|
virtual |
Wake all threads waiting on this condition.
- Returns
- 0 if normal, -1 if errno set, errno code otherwise.
◆ signal()
virtual int OpenThreads::Condition::signal |
( |
| ) |
|
|
virtual |
Signal a SINGLE thread to wake if it's waiting.
- Returns
- 0 if normal, -1 if errno set, errno code otherwise.
◆ wait()
virtual int OpenThreads::Condition::wait |
( |
Mutex * |
mutex, |
|
|
unsigned long int |
ms |
|
) |
| |
|
virtual |
Wait on a mutex for a given amount of time (ms)
- Returns
- 0 if normal, -1 if errno set, errno code otherwise.
The documentation for this class was generated from the following file:
- /home/karlu20/private/installs/OpenSceneGraph/include/OpenThreads/Condition