Rudiments
|
Static Public Member Functions | |
static bool | macrosnooze (uint32_t seconds) |
static bool | macrosnooze (uint32_t seconds, uint32_t *secondsremaining) |
static bool | microsnooze (uint32_t seconds, uint32_t microseconds) |
static bool | microsnooze (uint32_t seconds, uint32_t microseconds, uint32_t *secondsremaining, uint32_t *microsecondsremaining) |
static bool | nanosnooze (uint32_t seconds, uint32_t nanoseconds) |
static bool | nanosnooze (uint32_t seconds, uint32_t nanoseconds, uint32_t *secondsremaining, uint32_t *nanosecondsremaining) |
The snooze class provides static methods for suspending process execution.
|
static |
Suspend execution for "seconds" seconds. Returns true on success and false on failure. If the snooze is interrupted, it resumes after the interruption until the specified duration has elapsed.
|
static |
Suspend execution for "seconds" seconds. Returns true on success and false on failure, or if it was interrupted (usually by a signal). If the snooze is interrupted or failed, "secondsremaining" is populated with the number of seconds that remained. If "secondsremaining" may be NULL then it isn't populated, but the snooze may still be interrupted.
|
static |
Suspend execution for "seconds" seconds and "microseconds" microseconds. Returns true on success and false on failure. If the snooze is interrupted, it resumes after the interruption until the specified duration has elapsed.
|
static |
Suspend execution for "seconds" seconds and "microseconds" microseconds. Returns true on success and false on failure, or if it was interrupted (usually by a signal). If the snooze is interrupted or failed, "secondsremaining" and "microsecondsremaining" are populated with the number of seconds and microseconds that remained. If "secondsremaining" or "microsecondsremaining" is NULL then it isn't populated, but the snooze may still be interrupted.
|
static |
Suspend execution for "seconds" seconds and "nanoseconds" nanoseconds. Returns true on success and false on failure. If the snooze is interrupted, it resumes after the interruption until the specified duration has elapsed.
|
static |
Suspend execution for "seconds" seconds and "nanoseconds" nanoseconds. Returns true on success and false on failure, or if it was interrupted (usually by a signal). If the snooze is interrupted or failed, "secondsremaining" and "nanosecondsremaining" are populated with the number of seconds and nanoseconds that remained. If "secondsremaining" or "nanosecondsremaining" is NULL then it isn't populated, but the snooze may still be interrupted.