osYieldThread osYieldThread (function)

Yields the CPU and invokes the thread dispatcher

Syntax

#include <ultra64.h>     /* ultra64.h */
void osYieldThread(void);

Description

osYieldThread inserts the calling thread back into the run queue following all other threads of the same priority. Then the dispatcher is invoked to run the (possibly different) thread at the front of the run queue. If the calling thread is the only thread at its priority level, then this call effectively does nothing.

See Also

osCreateThread, osGetThreadId, osGetThreadPri, osStartThread, and osStopThread

Revision History

1999/04/30 Changed Format