| Overview | Namespace | Class | Index | Help |
| PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
| PRIVATE MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
| virtual | abstract | interface | template |
| NO | NO | NO | NO |
Thread synchronization object
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.
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. |
Methods |
|
| Condition( oslCondition condition ); |
|
Data |
|
| oslCondition condition; | |
Copyright © 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.