timedWait overloads
Synopses
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);
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);
Return Value
0 on success, PRIMITIVE::e_TIMED_OUT on timeout, and other values on error
Parameters
Name |
Description |
primitive |
synchronization primitive on which to wait |
absTime |
absolute timeout as a |
argument |
additional argument forwarded to |
Created with MrDocs