#include <revolution/os.h> #define OS_THREAD_SPECIFIC_MAX 2 void* OSGetThreadSpecific ( s32 index ); void OSSetThreadSpecific ( s32 index, void* ptr );
|
Index to the thread-specific data (zero or one). |
|
Thread-specific data to set (OSSetThreadSpecific). |
The OSGetThreadSpecific function returns the thread-specific data at index. The OSSetThreadSpecific function does not have return values.
Gets/sets data specific to the thread that calls this function. Up to a maximum of OS_THREAD_SPECIFIC_MAX void type pointers can be separately stored for each thread in the OSThread structure. When threads are created, thread-specific data is zeroed out.
Thread Functions, Thread Synchronization Functions, OSCreateThread, OSGetThreadPriority
03/01/2006 Initial version.