Condition.
More...
#include <condition.h>
List of all members.
Detailed Description
Condition.
This class realizes a condition variable.
- Author:
- Thomas Dreibholz
- Version:
- 1.0
- See also:
- Synchronizable
-
Thread
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
name | Name. |
parentCondition | Parent condition. |
recursive | true to make condition's mutex recursive; false otherwise (default for Condition!). |
Member Function Documentation
Add parent condition.
- Parameters:
-
parentCondition | Parent condition to be added. |
Broadcast condition: All threads waiting for this variable will be resumed.
Check, if condition has been fired. This call will reset the fired state.
- Returns:
- true, if condition has been fired; false otherwise.
Check, if condition has been fired. This call will *not* reset the fired state.
- Returns:
- true, if condition has been fired; false otherwise.
Remove parent condition.
- Parameters:
-
parentCondition | Parent condition to be removed. |
Fire condition: One thread waiting for this variable will be resumed.
Wait for condition with timeout.
- Parameters:
-
microseconds | Timeout in microseconds. |
- Returns:
- true, if condition has been received; false for timeout.
Wait for condition without timeout.
Member Data Documentation
The documentation for this class was generated from the following files: