AlterOffice
AlterOffice 2026.2 SDK C/C++ API Reference
conditn.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 
3 
4 #ifndef INCLUDED_OSL_CONDITN_H
5 #define INCLUDED_OSL_CONDITN_H
6 
7 #include "sal/config.h"
8 
9 #include "osl/time.h"
10 #include "sal/saldllapi.h"
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 typedef void* oslCondition;
17 
18 typedef enum {
19  osl_cond_result_ok, /*<! Successful completion. */
20  osl_cond_result_error, /*<! Error occurred. @see osl_getLastSocketError() */
21  osl_cond_result_timeout, /*<! Blocking operation timed out. */
24 
35 
41 
50 
57 
65 
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif // INCLUDED_OSL_CONDITN_H
80 
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define SAL_DLLPUBLIC
Definition: saldllapi.h:14
#define SAL_MAX_ENUM
Definition: types.h:185
unsigned char sal_Bool
Definition: types.h:18
SAL_DLLPUBLIC sal_Bool osl_resetCondition(oslCondition Condition)
Sets condition to False => wait() will block, check() returns False.
oslConditionResult
Definition: conditn.h:18
@ osl_cond_result_error
Definition: conditn.h:20
@ osl_cond_result_ok
Definition: conditn.h:19
@ osl_cond_result_FORCE_EQUAL_SIZE
Definition: conditn.h:22
@ osl_cond_result_timeout
Definition: conditn.h:21
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:16
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.
Time since Jan-01-1970.
Definition: time.h:56