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);
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);
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
absoluteTime |
absolute time at which to resume |
clockType |
clock epoch used to interpret |
retryOnSignalInterrupt |
whether to resume sleep after a signal |
Created with MrDocs