BloombergLP::bslmt::Sluice::timedWait

Wait for token to be signaled, or until absTime expires.

Synopses

Declared in <bslmt_sluice.h>

Wait for token to be signaled, or until absTime expires.

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

Wait for token to be signaled, or until absTime expires.

template<
    class CLOCK,
    class DURATION>
int
timedWait(
    void const* token,
    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
tokenwait token previously returned by enter
absTimeabsolute timeout from the construction clock epoch