timedWait overloads
Declared in <bslmt_chronoutil.h>
Block on primitive until success or the absolute timeout.
template<
class PRIMITIVE,
class CLOCK,
class DURATION>
static
int
timedWait(
PRIMITIVE* primitive,
bsl::chrono::time_point<CLOCK, DURATION> const& absTime);
» more...
Block on primitive with an argument until success or timeout.
template<
class PRIMITIVE,
class ARG_TYPE,
class CLOCK,
class DURATION>
static
int
timedWait(
PRIMITIVE* primitive,
ARG_TYPE* argument,
bsl::chrono::time_point<CLOCK, DURATION> const& absTime);
» more...
0 on success, PRIMITIVE::e_TIMED_OUT on timeout, and other values on error
| Name | Description |
|---|---|
| primitive | synchronization primitive on which to wait |
| absTime | absolute timeout as a bsl::chrono::time_point |
| argument | additional argument forwarded to timedWait |