BloombergLP::bslmt::ThreadUtilImpl<Platform::PosixThreads>::sleepUntil

Suspend the current thread until the specified absolute time.

Synopses

Declared in <bslmt_threadutilimpl_pthread.h>

Suspend the current thread until the specified absolute time.

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

Suspend the current thread until the specified absolute time.

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

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
absoluteTimeabsolute time at which to resume
clockTypeclock epoch used to interpret absoluteTime
retryOnSignalInterruptwhether to resume sleep after a signal