Rudiments
|
#include <snooze.h>
The snooze class provides static methods for suspending process execution.
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.
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.
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.
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.