Go to the source code of this file.
§ oslCondition
§ oslConditionResult
Enumerator |
---|
osl_cond_result_ok | |
osl_cond_result_error | |
osl_cond_result_timeout | |
osl_cond_result_FORCE_EQUAL_SIZE | |
§ osl_checkCondition()
Queries the state of the condition without blocking.
- Parameters
-
Condition | handle to a created condition. |
- Returns
- True: condition is set.
False: condition is not set.
§ osl_createCondition()
Creates a condition.
The condition is in the reset-state.
- Returns
- 0 if condition could not be created.
§ osl_destroyCondition()
Free the memory used by the condition.
- Parameters
-
Condition | the condition handle. |
§ osl_resetCondition()
Sets condition to False => wait() will block, check() returns False.
- Parameters
-
Condition | handle to a created condition. |
- Returns
- False if system-call failed.
§ osl_setCondition()
Sets condition to True => wait() will not block, check() returns True.
NOTE: ALL threads waiting on this condition are unblocked!
- Parameters
-
Condition | handle to a created condition. |
- Returns
- False if system-call failed.
§ osl_waitCondition()
Blocks if condition is not set
If condition has been destroyed prematurely, wait() will return with False.
- Parameters
-
Condition | handle to a created condition. |
pTimeout | Timeout value or NULL for infinite waiting |
- Returns
- False if system-call failed.