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);

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);

Return Value

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

Parameters

Name

Description

token

wait token previously returned by enter

absTime

absolute timeout from the construction clock epoch

Created with MrDocs