Go to the source code of this file.
Enumerator |
---|
osl_cond_result_ok |
|
osl_cond_result_error |
|
osl_cond_result_timeout |
|
osl_cond_result_FORCE_EQUAL_SIZE |
|
Queries the state of the condition without blocking.
- Parameters
-
Condition | handle to a created condition. |
- Return values
-
True | condition is set |
False | condition is not set |
Creates a condition.
- Deprecated:
- use C++11's std::condition_variable instead for a more robust and helpful condition.
The condition is in the reset-state.
- Return values
-
osl_cond_result_error | Condition could not be created. |
Free the memory used by the condition.
- Parameters
-
Condition | the condition handle. |
Sets condition to False => wait() will block, check() returns False.
- Parameters
-
Condition | handle to a created condition. |
- Return values
-
False | if system-call failed. |
Sets condition to True => wait() will not block, check() returns True.
- Attention
- all threads waiting on this condition are unblocked!
- Parameters
-
Condition | handle to a created condition. |
- Return values
-
False | if system-call failed. |
Blocks if condition is not set.
- Parameters
-
Condition | handle to a created condition. |
pTimeout | Timeout value or NULL for infinite waiting |
- Return values
-
False | Condition has been destroyed prematurely or system call has failed. |