BloombergLP::bslmt::ThreadUtil::sleepUntil

sleepUntil overloads

Synopses

Declared in <bslmt_threadutil.h>

Suspend the current thread until the specified absolute time point.

template<
    class CLOCK,
    class DURATION>
static
void
sleepUntil(bsl::chrono::time_point<CLOCK, DURATION> const& absoluteTime);
» more...

Suspend the current thread until the specified absolute time.

static
void
sleepUntil(
    bsls::TimeInterval const& absoluteTime,
    bsls::SystemClockType::Enum clockType = bsls::SystemClockType::e_REALTIME);
» more...

Parameters

NameDescription
absoluteTimeabsolute time point at which to resume
clockTypeclock epoch used to interpret absoluteTime