Rudiments
Static Public Member Functions
snooze Class Reference

List of all members.

Static Public Member Functions

static bool macrosnooze (long seconds)
static bool macrosnooze (long seconds, long *remainingseconds)
static bool microsnooze (long seconds, long microseconds)
static bool microsnooze (long seconds, long microseconds, long *secondsremaining, long *microsecondsremaining)
static bool nanosnooze (long seconds, long nanoseconds)
static bool nanosnooze (long seconds, long nanoseconds, long *secondsremaining, long *nanosecondsremaining)

Detailed Description

The snooze class provides methods for suspending process execution.


Member Function Documentation

static bool snooze::macrosnooze ( long  seconds)
static

Suspend execution for "seconds" seconds. Returns true on success and false on failure. snooze methods most commonly fail if they are interrupted by a signal.

static bool snooze::macrosnooze ( long  seconds,
long *  remainingseconds 
)
static

Suspend execution for "seconds" seconds. Returns true on success and false on failure. snooze methods most commonly fail if they are interrupted by a signal. "remainingseconds" is populated with the number of seconds that remained when the method was interrupted.

static bool snooze::microsnooze ( long  seconds,
long  microseconds 
)
static

Suspend execution for "seconds" seconds and "microseconds" microseconds. Returns true on success and false on failure. snooze methods most commonly fail if they are interrupted by a signal.

static bool snooze::microsnooze ( long  seconds,
long  microseconds,
long *  secondsremaining,
long *  microsecondsremaining 
)
static

Suspend execution for "seconds" seconds and "microseconds" microseconds. Returns true on success and false on failure. snooze methods most commonly fail if they are interrupted by a signal. "remainingseconds" and "remainingmicroseconds" are populated with the number of seconds and microseconds that remained when the method was interrupted.

static bool snooze::nanosnooze ( long  seconds,
long  nanoseconds 
)
static

Suspend execution for "seconds" seconds and "nanoseconds" nanoseconds. Note that some systems do not have true nanosecond clock resolution. Returns true on success and false on failure. snooze methods most commonly fail if they are interrupted by a signal.

static bool snooze::nanosnooze ( long  seconds,
long  nanoseconds,
long *  secondsremaining,
long *  nanosecondsremaining 
)
static

Suspend execution for "seconds" seconds and "nanoseconds" nanoseconds. Note that some systems do not have true nanosecond clock resolution. Returns true on success and false on failure. snooze methods most commonly fail if they are interrupted by a signal. "remainingseconds" and "remainingnanoseconds" are populated with the number of seconds and nanoseconds that remained when the method was interrupted.