Global Functions in Global Namespace C++
in Sourcefile conditn.h
-
osl_checkCondition
- extern "C"
sal_Bool osl_checkCondition(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- Queries the state of the condition without blocking.
- Parameters
Condition |
handle to a created condition.
|
- Return
- sal_True if condition is in set state or sal_False otherwise.
-
osl_createCondition
- extern "C"
oslCondition osl_createCondition(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- Creates a condition.
The condition is in the reset-state.
- Return
- a pointer to the created condition object or
NULL if the condition could not be created.
-
osl_destroyCondition
- extern "C"
void osl_destroyCondition(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Summary
- Free the memory used by the condition.
- Parameters
Condition |
the condition handle.
|
-
osl_resetCondition
- extern "C"
sal_Bool osl_resetCondition(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Description
- Resets condition to unset state
Any call to osl_waitCondition() will block, osl_checkCondition()
will return sal_False.
- Parameters
Condition |
handle to a created condition.
|
- Return
- sal_True if the condition has been unset or
sal_False if the system-call failed.
-
osl_setCondition
- extern "C"
sal_Bool osl_setCondition(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Description
- Sets the condition state to set
Any call to osl_waitCondition() will not block, osl_checkCondition()
returns sal_True.
NOTE: ALL threads waiting on this condition are unblocked!
- Parameters
Condition |
handle to a created condition.
|
- Return
- sal_True if the condition has been set or
sal_False if the system-call failed.
-
osl_waitCondition
- extern "C"
oslConditionResult osl_waitCondition(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Description
- Blocks if condition is not set.
If condition has been destroyed prematurely, osl_waitCondition()
will return sal_False.
- Parameters
Condition |
handle to a created condition.
|
pTimeout |
Tiemout value or NULL for infinite waiting
|
- Return
- on of the following result values: osl_cond_result_ok,
osl_cond_result_error, osl_cond_result_timeout.
Top of Page
Copyright © 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.