20 #ifndef INCLUDED_OSL_CONDITN_HXX
21 #define INCLUDED_OSL_CONDITN_HXX
30 #if defined(MACOSX) && defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
31 # if __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES == 1
122 #if defined LIBO_INTERNAL_ONLY
#define SAL_DELETED_FUNCTION
short-circuit extra-verbose API namespaces
Definition: types.h:374
SAL_DLLPUBLIC sal_Bool osl_resetCondition(oslCondition Condition)
Sets condition to False => wait() will block, check() returns False.
@ osl_cond_result_error
Definition: conditn.h:36
@ osl_cond_result_ok
Definition: conditn.h:35
@ osl_cond_result_timeout
Definition: conditn.h:37
SAL_DLLPUBLIC oslCondition osl_createCondition(void)
Creates a condition.
SAL_DLLPUBLIC oslConditionResult osl_waitCondition(oslCondition Condition, const TimeValue *pTimeout)
Blocks if condition is not set.
void * oslCondition
Definition: conditn.h:32
SAL_DLLPUBLIC sal_Bool osl_setCondition(oslCondition Condition)
Sets condition to True => wait() will not block, check() returns True.
SAL_DLLPUBLIC sal_Bool osl_checkCondition(oslCondition Condition)
Queries the state of the condition without blocking.
SAL_DLLPUBLIC void osl_destroyCondition(oslCondition Condition)
Free the memory used by the condition.
Definition: condition.hxx:28
Condition variable.
Definition: conditn.hxx:56
Result
Definition: conditn.hxx:59
@ result_error
Definition: conditn.hxx:61
@ result_ok
Definition: conditn.hxx:60
@ result_timeout
Definition: conditn.hxx:62
void reset()
Reset condition to false: wait() will block, check() returns false.
Definition: conditn.hxx:101
void set()
Release all waiting threads, check returns true.
Definition: conditn.hxx:90
bool check()
Checks if the condition is set without blocking.
Definition: conditn.hxx:134
Condition()
Create a condition.
Definition: conditn.hxx:70
~Condition()
Release the OS-structures and free condition data-structure.
Definition: conditn.hxx:80
Result wait(const TimeValue *pTimeout=NULL)
Blocks the calling thread until condition is set.
Definition: conditn.hxx:117