|
LibreOffice
LibreOffice 5.1 SDK C/C++ API Reference
|
Go to the source code of this file.
Typedefs | |
| typedef void * | oslCondition |
Enumerations | |
| enum | oslConditionResult { osl_cond_result_ok, osl_cond_result_error, osl_cond_result_timeout, osl_cond_result_FORCE_EQUAL_SIZE = SAL_MAX_ENUM } |
Functions | |
| SAL_DLLPUBLIC oslCondition | osl_createCondition (void) |
| Creates a condition. More... | |
| SAL_DLLPUBLIC void | osl_destroyCondition (oslCondition Condition) |
| Free the memory used by the condition. More... | |
| SAL_DLLPUBLIC sal_Bool | osl_setCondition (oslCondition Condition) |
| Sets condition to True => wait() will not block, check() returns True. More... | |
| SAL_DLLPUBLIC sal_Bool | osl_resetCondition (oslCondition Condition) |
| Sets condition to False => wait() will block, check() returns False. More... | |
| SAL_DLLPUBLIC oslConditionResult | osl_waitCondition (oslCondition Condition, const TimeValue *pTimeout) |
| Blocks if condition is not set If condition has been destroyed prematurely, wait() will return with False. More... | |
| SAL_DLLPUBLIC sal_Bool | osl_checkCondition (oslCondition Condition) |
| Queries the state of the condition without blocking. More... | |
| typedef void* oslCondition |
| enum oslConditionResult |
| SAL_DLLPUBLIC sal_Bool osl_checkCondition | ( | oslCondition | Condition | ) |
Queries the state of the condition without blocking.
| Condition | handle to a created condition. |
| SAL_DLLPUBLIC oslCondition osl_createCondition | ( | void | ) |
Creates a condition.
The condition is in the reset-state.
| SAL_DLLPUBLIC void osl_destroyCondition | ( | oslCondition | Condition | ) |
Free the memory used by the condition.
| Condition | the condition handle. |
| SAL_DLLPUBLIC sal_Bool osl_resetCondition | ( | oslCondition | Condition | ) |
Sets condition to False => wait() will block, check() returns False.
| Condition | handle to a created condition. |
| SAL_DLLPUBLIC sal_Bool osl_setCondition | ( | oslCondition | Condition | ) |
Sets condition to True => wait() will not block, check() returns True.
NOTE: ALL threads waiting on this condition are unblocked!
| Condition | handle to a created condition. |
| SAL_DLLPUBLIC oslConditionResult osl_waitCondition | ( | oslCondition | Condition, |
| const TimeValue * | pTimeout | ||
| ) |
Blocks if condition is not set
If condition has been destroyed prematurely, wait() will return with False.
| Condition | handle to a created condition. |
| pTimeout | Timeout value or NULL for infinite waiting |
1.8.11