BloombergLP::bslmt::ConditionImpl<Platform::PosixThreads>

Full specialization of Condition for pthreads.

Synopsis

Declared in <bslmt_conditionimpl_pthread.h>

template<>
class ConditionImpl<Platform::PosixThreads>;

Description

This class provides a full specialization of Condition for pthreads. The implementation provided here defines an efficient proxy for the pthread_cond_t pthread type, and related operations.

Enums

NameDescription
Unnamed enum The value timedWait returns when a timeout occurs.

Member Functions

NameDescription
ConditionImpl [constructor]Create a condition variable object.
~ConditionImpl [destructor]Destroy condition variable this object.
broadcast Signal this condition object; wake up all threads that are currently waiting on this condition.
clockType Return the clock type used for timeouts.
signal Signal this condition object; wake up a single thread that is currently waiting on this condition.
timedWait Atomically unlock the mutex and wait until signaled or timeout.
wait Atomically unlock the mutex and wait until this condition is signaled.