BloombergLP::bslmt::Condition::timedWait

Unlock mutex and wait until signaled or until absTime.

Synopses

Declared in <bslmt_condition.h>

Unlock mutex and wait until signaled or until absTime.

int
timedWait(
    Mutex* mutex,
    bsls::TimeInterval const& absTime);
» more...

Unlock mutex and wait until signaled or until absTime.

template<
    class CLOCK,
    class DURATION>
int
timedWait(
    Mutex* mutex,
    bsl::chrono::time_point<CLOCK, DURATION> const& absTime);
» more...

Return Value

0 on success, e_TIMED_OUT on timeout, or another value on error

Parameters

NameDescription
mutexmutex already locked by the calling thread
absTimeabsolute timeout for the wait