sleepUntil overloads
Declared in <bslmt_threadutil.h>
Suspend execution of the current thread until the specified absoluteTime, which is an absolute time represented as an interval from some epoch, determined by the clock associated with the time point. The behavior is undefined unless absoluteTime represents a time after January 1, 1970 and before the end of December 31, 9999. Note that the actual time suspended depends on many factors including system scheduling and system timer resolution.
template<
class CLOCK,
class DURATION>
static
void
sleepUntil(bsl::chrono::time_point<CLOCK, DURATION> const& absoluteTime);
» more...
Suspend execution of the current thread until the specified absoluteTime, or an interrupting signal is received. Optionally specify clockType which determines the epoch from which the interval absoluteTime is measured (see {Supported Clock-Types} in the component documentation). The behavior is undefined unless absoluteTime represents a time after January 1, 1970 and before the end of December 31, 9999 (i.e., a time interval greater than or equal to 0, and less than 253,402,300,800 seconds). Note that the actual time suspended depends on many factors including system scheduling and system timer resolution.
static
void
sleepUntil(
bsls::TimeInterval const& absoluteTime,
bsls::SystemClockType::Enum clockType = bsls::SystemClockType::e_REALTIME);
» more...