WUT  0.1
Wii U Toolchain
Data Fields
OSThread Struct Reference

#include <thread.h>

Data Fields

OSContext context
 
uint32_t tag
 
OSThreadState state
 
OSThreadAttributes attr
 
uint16_t id
 
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 171 of file thread.h.

Field Documentation

OSThreadLink activeLink

Link for global active thread queue.

Definition at line 209 of file thread.h.

Definition at line 176 of file thread.h.

int32_t basePriority

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

Definition at line 186 of file thread.h.

BOOL cancelState

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

Definition at line 242 of file thread.h.

OSThreadCleanupCallbackFn cleanupCallback

Called just before thread is terminated, set with OSSetThreadCleanupCallback.

Definition at line 236 of file thread.h.

OSContext context

Definition at line 173 of file thread.h.

OSThreadDeallocatorFn deallocator

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

Definition at line 239 of file thread.h.

Thread entry point.

Definition at line 218 of file thread.h.

int32_t exitValue

Exit value.

Definition at line 189 of file thread.h.

uint16_t id

Definition at line 177 of file thread.h.

OSThreadQueue joinQueue

Queue of threads waiting to join this thread.

Definition at line 200 of file thread.h.

Link used for thread queue.

Definition at line 197 of file thread.h.

OSMutex* mutex

Mutex this thread is waiting to lock.

Definition at line 203 of file thread.h.

OSMutexQueue mutexQueue

Queue of mutexes this thread owns.

Definition at line 206 of file thread.h.

const char* name

Thread name, accessed with OSSetThreadName and OSGetThreadName.

Definition at line 228 of file thread.h.

int32_t needSuspend

Pending suspend request count.

Definition at line 248 of file thread.h.

int32_t priority

Actual priority of thread.

Definition at line 183 of file thread.h.

OSThreadQueue* queue

Queue the thread is currently waiting on.

Definition at line 194 of file thread.h.

OSThreadRequest requestFlag

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

Definition at line 245 of file thread.h.

uint32_t specific[0x10]

Thread specific values, accessed with OSSetThreadSpecific and OSGetThreadSpecific.

Definition at line 223 of file thread.h.

void* stackEnd

Stack end (bottom, lowest address)

Definition at line 215 of file thread.h.

void* stackStart

Stack start (top, highest address)

Definition at line 212 of file thread.h.

Definition at line 175 of file thread.h.

int32_t suspendCounter

Suspend count (increased by OSSuspendThread).

Definition at line 180 of file thread.h.

OSThreadQueue suspendQueue

Queue of threads waiting for a thread to be suspended.

Definition at line 254 of file thread.h.

int32_t suspendResult

Result of thread suspend.

Definition at line 251 of file thread.h.

uint32_t tag

Definition at line 174 of file thread.h.

void* userStackPointer

The stack pointer passed in OSCreateThread.

Definition at line 233 of file thread.h.


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