Block until the count of this semaphore is a positive value, or until the specified absTime timeout expires. absTime is an absolute time represented by a time point with respect to some epoch, which is determined by the clock associated with the time point. If the absTime timeout did not expire before the count attained a positive value, atomically decrement the count and return 0. If the absTime timeout did expire, return e_TIMED_OUT with no effect on the count. Any other value indicates that an error has occurred. Errors are unrecoverable. After an error, the semaphore may be destroyed, but any other use has undefined behavior. On Windows platforms, this method may return e_TIMED_OUT slightly before absTime.
Declared in <bslmt_timedsemaphore.h>
template<
class CLOCK,
class DURATION>
int
timedWait(bsl::chrono::time_point<CLOCK, DURATION> const& absTime);