OSSleepNanoseconds

C Specification

#include <revolution/os.h>
void OSSleepTicks ( OSTime ticks );
#define OSSleepNanoseconds( nsec )    OSSleepTicks( OSNanosecondsToTicks(nsec) )

Arguments

nsec the time (in seconds) to pause the current thread

Return Values

None.

Description

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

See Also

Thread Synchronization, Thread Synchronization Functions,
OSSleepTicks
OSSleepSeconds
OSSleepMilliseconds
OSSleepMicroseconds

Revision History

2006/08/11 Initial version.


CONFIDENTIAL