OSSleepThread

C Specification

#include <revolution/os.h>
void OSSleepThread(OSThreadQueue* queue);

Arguments

queue Pointer to the thread queue into which the current thread will be inserted.

Return Values

None.

Description

Suspends the current thread and inserts it into the specified thread queue. The thread will remain in sleep until OSWakeupThread() is called on this queue.

This function may put the current thread to sleep. For precautions when calling similar functions, refer to Interrupts and Callback Functions.

See Also

Thread Synchronization, Thread Synchronization Functions, OSInitThreadQueue, OSWakeupThread, Interrupts and Callback Functions

Revision History

2007/09/25 Added information on the sleeping status of threads.
2006/03/01 Initial version.


CONFIDENTIAL