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
- True: condition is set.
False: condition is not set.
- osl_createCondition
- extern "C"
oslCondition osl_createCondition(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
- Description
- Creates a condition.
The condition is in the reset-state.
@returns 0 if 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 |
- Summary
- Sets condition to False => wait() will block, check() returns False
- Parameters
Condition |
handle to a created condition.
|
- Return
- False if 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 |
- Summary
- 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.
|
- Return
- False if 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, wait() will
return with False.
- Parameters
Condition |
handle to a created condition.
|
pTimeout |
Tiemout value or NULL for infinite waiting
|
- Return
- False if system-call failed.
Top of Page
Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.
Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.