Unlock mutex and wait until signaled or until absTime.
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...
0 on success, e_TIMED_OUT on timeout, or another value on error
| Name | Description |
|---|---|
| mutex | mutex already locked by the calling thread |
| absTime | absolute timeout for the wait |