OSSleepSeconds

C Specification

#include <revolution/os.h>
void OSSleepTicks ( OSTime ticks );
#define OSSleepSeconds( sec )    OSSleepTicks( OSSecondsToTicks(sec) )

Arguments

sec The time (in seconds) for which to pause the current thread

Return Values

None.

Description

Pauses the current thread and returns it to an executable state after the number of seconds specified in sec has elapsed. The timing with which the thread will actually restart will vary based on the state of other threads and interrupt processes.

Note: If calling the OSCancelThread function while the OSSleepSeconds function is running, call it after calling the OSCancelAlarms function with the OSThread pointer as a tag.

See Also

Thread Synchronization, Thread Synchronization Functions,
OSSleepTicks
OSSleepMilliseconds
OSSleepMicroseconds
OSSleepNanoseconds
OSCancelThread
OSCancelAlarms

Revision History

2007/12/11 Added notes.
2006/08/11 Initial version.


CONFIDENTIAL