Block until the number of events that this latch is waiting for reaches 0, or until the specified absTime timeout expires. Return 0 on success, e_TIMED_OUT on timeout, and a non-zero value different from e_TIMED_OUT if an error occurs. Errors are unrecoverable. After an error, the latch may be destroyed, but any other use has undefined behavior. absTime is an absolute time represented as an interval from some epoch, which is determined by the clock associated with the time point. Note that a return value of 0 does not guarantee this object is safe to destroy.
Declared in <bslmt_latch.h>
template<
class CLOCK,
class DURATION>
int
timedWait(bsl::chrono::time_point<CLOCK, DURATION> const& absTime);