WUT  0.1
Wii U Toolchain
Data Fields
OSThread Struct Reference

#include <thread.h>

Data Fields

OSContext context
 
uint32_t tag
 Should always be set to the value OS_THREAD_TAG. More...
 
OSThreadState state
 Bitfield of OS_THREAD_STATE. More...
 
OSThreadAttributes attr
 Bitfield of OS_THREAD_ATTRIB. More...
 
uint16_t id
 Unique thread ID. More...
 
int32_t suspendCounter
 Suspend count (increased by OSSuspendThread). More...
 
int32_t priority
 Actual priority of thread. More...
 
int32_t basePriority
 Base priority of thread, 0 is highest priority, 31 is lowest priority. More...
 
int32_t exitValue
 Exit value. More...
 
OSThreadQueuequeue
 Queue the thread is currently waiting on. More...
 
OSThreadLink link
 Link used for thread queue. More...
 
OSThreadQueue joinQueue
 Queue of threads waiting to join this thread. More...
 
OSMutexmutex
 Mutex this thread is waiting to lock. More...
 
OSMutexQueue mutexQueue
 Queue of mutexes this thread owns. More...
 
OSThreadLink activeLink
 Link for global active thread queue. More...
 
void * stackStart
 Stack start (top, highest address) More...
 
void * stackEnd
 Stack end (bottom, lowest address) More...
 
OSThreadEntryPointFn entryPoint
 Thread entry point. More...
 
uint32_t specific [0x10]
 Thread specific values, accessed with OSSetThreadSpecific and OSGetThreadSpecific. More...
 
const char * name
 Thread name, accessed with OSSetThreadName and OSGetThreadName. More...
 
void * userStackPointer
 The stack pointer passed in OSCreateThread. More...
 
OSThreadCleanupCallbackFn cleanupCallback
 Called just before thread is terminated, set with OSSetThreadCleanupCallback. More...
 
OSThreadDeallocatorFn deallocator
 Called just after a thread is terminated, set with OSSetThreadDeallocator. More...
 
BOOL cancelState
 If TRUE then a thread can be cancelled or suspended, set with OSSetThreadCancelState. More...
 
OSThreadRequest requestFlag
 Current thread request, used for cancelleing and suspending the thread. More...
 
int32_t needSuspend
 Pending suspend request count. More...
 
int32_t suspendResult
 Result of thread suspend. More...
 
OSThreadQueue suspendQueue
 Queue of threads waiting for a thread to be suspended. More...
 

Detailed Description

Definition at line 176 of file thread.h.

Field Documentation

OSContext context

Definition at line 178 of file thread.h.

uint32_t tag

Should always be set to the value OS_THREAD_TAG.

Definition at line 181 of file thread.h.

Bitfield of OS_THREAD_STATE.

Definition at line 184 of file thread.h.

Bitfield of OS_THREAD_ATTRIB.

Definition at line 187 of file thread.h.

uint16_t id

Unique thread ID.

Definition at line 190 of file thread.h.

int32_t suspendCounter

Suspend count (increased by OSSuspendThread).

Definition at line 193 of file thread.h.

int32_t priority

Actual priority of thread.

Definition at line 196 of file thread.h.

int32_t basePriority

Base priority of thread, 0 is highest priority, 31 is lowest priority.

Definition at line 199 of file thread.h.

int32_t exitValue

Exit value.

Definition at line 202 of file thread.h.

OSThreadQueue* queue

Queue the thread is currently waiting on.

Definition at line 207 of file thread.h.

Link used for thread queue.

Definition at line 210 of file thread.h.

OSThreadQueue joinQueue

Queue of threads waiting to join this thread.

Definition at line 213 of file thread.h.

OSMutex* mutex

Mutex this thread is waiting to lock.

Definition at line 216 of file thread.h.

OSMutexQueue mutexQueue

Queue of mutexes this thread owns.

Definition at line 219 of file thread.h.

OSThreadLink activeLink

Link for global active thread queue.

Definition at line 222 of file thread.h.

void* stackStart

Stack start (top, highest address)

Definition at line 225 of file thread.h.

void* stackEnd

Stack end (bottom, lowest address)

Definition at line 228 of file thread.h.

Thread entry point.

Definition at line 231 of file thread.h.

uint32_t specific[0x10]

Thread specific values, accessed with OSSetThreadSpecific and OSGetThreadSpecific.

Definition at line 236 of file thread.h.

const char* name

Thread name, accessed with OSSetThreadName and OSGetThreadName.

Definition at line 241 of file thread.h.

void* userStackPointer

The stack pointer passed in OSCreateThread.

Definition at line 246 of file thread.h.

OSThreadCleanupCallbackFn cleanupCallback

Called just before thread is terminated, set with OSSetThreadCleanupCallback.

Definition at line 249 of file thread.h.

OSThreadDeallocatorFn deallocator

Called just after a thread is terminated, set with OSSetThreadDeallocator.

Definition at line 252 of file thread.h.

BOOL cancelState

If TRUE then a thread can be cancelled or suspended, set with OSSetThreadCancelState.

Definition at line 255 of file thread.h.

OSThreadRequest requestFlag

Current thread request, used for cancelleing and suspending the thread.

Definition at line 258 of file thread.h.

int32_t needSuspend

Pending suspend request count.

Definition at line 261 of file thread.h.

int32_t suspendResult

Result of thread suspend.

Definition at line 264 of file thread.h.

OSThreadQueue suspendQueue

Queue of threads waiting for a thread to be suspended.

Definition at line 267 of file thread.h.


The documentation for this struct was generated from the following file: