Overview   Namespace   Class   Index   Help 
PUBLIC MEMBERS:  CLASSESSTRUCTSUNIONSENUMSTYPEDEFSMETHODSSTATIC METHODSDATASTATIC DATA
PRIVATE MEMBERS:  CLASSESSTRUCTSUNIONSENUMSTYPEDEFSMETHODSSTATIC METHODSDATASTATIC DATA

:: osl ::

class Condition


Base Classes
None.
Known Derived Classes
None.

virtual abstract interface template
NO NO NO NO
Summary
Thread synchronization object

Description
        A condition is a thread synchronization method with two different states: 
        set (sal_True) and unset (sal_False). When in unset state, any thread 
        calling the wait() method will be blocked until the state changes to set.
    
File
conditn.hxx

Public Members

Enums

Result

Methods


Condition( );
Constructs a condition object.

~Condition( );
Release the OS-structures and free condition data-structure.
void
set( );
Release all waiting threads, check() returns sal_True.
void
reset( );
Reset condition to false: wait() will block, check() returns sal_False.
Result
wait( const TimeValue * pTimeout = 0 );
Blocks the calling thread until condition is set.
sal_Bool
check( );
Checks if the condition is set without blocking.

Private Members

Methods


Condition( oslCondition condition );

Data

oslCondition condition;

Top of Page