Suspend the current thread until the specified absolute time.
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...
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| absoluteTime | absolute time at which to resume |
| clockType | clock epoch used to interpret absoluteTime |
| retryOnSignalInterrupt | whether to resume sleep after a signal |