N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential





osStartThread

Syntax

#include <ultra64.h>

void osStartThread(OSThread *t);


Explanation
It starts or resumes a thread. The osStartThread function makes a thread created by osCreateThread runnable for the first time, or it resumes a thread previously suspended by osStopThread. In the former case, osStartThread enqueues the given thread t onto the run queue. In the latter case, osStartThread reinserts the given thread back onto the queue it was on when osStopThread was called. In either case, if the thread is made runnable and if the thread has a higher priority than the invoking thread, the currently running thread immediately yields the CPU to the started thread.

See osStopThread for a discussion of the side effects of this implementation.

See Also
osCreateThread
osGetThreadId
osGetThreadPri
osStopThread
osYieldThread



Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated March 1998