[Prev] [Contents] [Next]

Condition Variable Synchronization APIs

Condition variables are synchronization objects that allow threads to wait for certain events (conditions) to occur. Condition variables are slightly more complex than mutexes, and the correct use of condition variables requires the thread to co-operatively use a specific protocol in order to ensure safe and consistent serialization. The protocol for using condition variables includes a mutex, a boolean predicate (true/false expression) and the condition variable itself. The threads that are co-operating using condition variables can wait for a condition to occur, or can wake up other threads that are waiting for a condition.
pthread_condattr_destroy()--Destroy Condition Variable Attributes Object
pthread_condattr_init()--Initialize Condition Variable Attributes Object
pthread_condattr_getpshared()--Get Process Shared Attribute from Condition Attributes Object
pthread_condattr_setpshared()--Set Process Shared Attribute in Condition Attributes Object
pthread_cond_broadcast()--Broadcast Condition to All Waiters
pthread_cond_destroy()--Destroy a Condition Variable
pthread_cond_init()--Initialize a Condition Variable
pthread_cond_signal()--Signal Condition to One Waiter
pthread_cond_timedwait()--Timed Wait for a Condition
pthread_cond_wait()--Wait for a Condition
pthread_get_expiration_np()--Get Condition Expiration Time from Delta



[Prev] [Contents] [Next]
Copyright © 1998, IBM Corporation. All rights reserved.
Comments? Contact
rchthrds@us.ibm.com