Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSThread.h File Reference

Go to the source code of this file.

Classes

struct  OSThreadLink
 
struct  OSThreadQueue
 
struct  OSMutexLink
 
struct  OSMutexQueue
 
struct  OSThread
 

Typedefs

typedef u16 OSThreadState
 
typedef s32 OSPriority
 
typedef struct OSThread OSThread
 
typedef struct OSThreadQueue OSThreadQueue
 
typedef struct OSThreadLink OSThreadLink
 
typedef struct OSMutex OSMutex
 
typedef struct OSMutexQueue OSMutexQueue
 
typedef struct OSMutexLink OSMutexLink
 
typedef struct OSCond OSCond
 
typedef void(* OSSwitchThreadCallback) (OSThread *from, OSThread *to)
 

Functions

OSThreadQueue OS_THREAD_QUEUE AT_ADDRESS (0x800000DC)
 
OSThread *OS_CURRENT_THREAD AT_ADDRESS (0x800000E4)
 
static void DefaultSwitchThreadCallback (OSThread *from, OSThread *to)
 
OSSwitchThreadCallback OSSetSwitchThreadCallback (OSSwitchThreadCallback func)
 
void __OSThreadInit (void)
 
void OSInitThreadQueue (OSThreadQueue *queue)
 
OSThreadOSGetCurrentThread (void)
 
BOOL OSIsThreadTerminated (OSThread *thread)
 
s32 OSDisableScheduler (void)
 
s32 OSEnableScheduler (void)
 
static void UnsetRun (OSThread *thread)
 
s32 __OSGetEffectivePriority (OSThread *thread)
 
static OSThreadSetEffectivePriority (OSThread *thread, s32 priority)
 
void __OSPromoteThread (OSThread *thread, s32 priority)
 
static OSThreadSelectThread (BOOL yield)
 
void __OSReschedule (void)
 
void OSYieldThread (void)
 
BOOL OSCreateThread (OSThread *thread, void *func, void *param, void *stackBase, u32 stackSize, s32 priority, u16 attribute)
 
void OSExitThread (void *exitValue)
 
void OSCancelThread (OSThread *thread)
 
void OSDetachThread (OSThread *thread)
 
s32 OSResumeThread (OSThread *thread)
 
s32 OSSuspendThread (OSThread *thread)
 
void OSSleepThread (OSThreadQueue *queue)
 
void OSWakeupThread (OSThreadQueue *queue)
 
s32 OSSetThreadPriority (OSThread *thread, s32 priority)
 
s32 OSGetThreadPriority (OSThread *thread)
 
static s32 CheckThreadQueue (OSThreadQueue *thread)
 
s32 OSCheckActiveThreads (void)
 
static void OSClearStack (u8 value)
 

Typedef Documentation

◆ OSCond

◆ OSMutex

◆ OSMutexLink

◆ OSMutexQueue

◆ OSPriority

◆ OSSwitchThreadCallback

typedef void(* OSSwitchThreadCallback) (OSThread *from, OSThread *to)

◆ OSThread

◆ OSThreadLink

◆ OSThreadQueue

◆ OSThreadState

Function Documentation

◆ __OSGetEffectivePriority()

s32 __OSGetEffectivePriority ( OSThread thread)

◆ __OSPromoteThread()

void __OSPromoteThread ( OSThread thread,
s32  priority 
)

◆ __OSReschedule()

void __OSReschedule ( void  )

◆ __OSThreadInit()

void __OSThreadInit ( void  )

◆ AT_ADDRESS() [1/2]

OSThreadQueue OS_THREAD_QUEUE AT_ADDRESS ( 0x800000DC  )

◆ AT_ADDRESS() [2/2]

OSThread *OS_CURRENT_THREAD AT_ADDRESS ( 0x800000E4  )

◆ CheckThreadQueue()

static s32 CheckThreadQueue ( OSThreadQueue thread)
static

◆ DefaultSwitchThreadCallback()

static void DefaultSwitchThreadCallback ( OSThread from,
OSThread to 
)
static

◆ OSCancelThread()

void OSCancelThread ( OSThread thread)

◆ OSCheckActiveThreads()

s32 OSCheckActiveThreads ( void  )

◆ OSClearStack()

static void OSClearStack ( u8  value)
static

◆ OSCreateThread()

BOOL OSCreateThread ( OSThread thread,
void func,
void param,
void stackBase,
u32  stackSize,
s32  priority,
u16  attribute 
)

◆ OSDetachThread()

void OSDetachThread ( OSThread thread)

◆ OSDisableScheduler()

s32 OSDisableScheduler ( void  )

◆ OSEnableScheduler()

s32 OSEnableScheduler ( void  )

◆ OSExitThread()

void OSExitThread ( void exitValue)

◆ OSGetCurrentThread()

OSThread * OSGetCurrentThread ( void  )

◆ OSGetThreadPriority()

s32 OSGetThreadPriority ( OSThread thread)

◆ OSInitThreadQueue()

void OSInitThreadQueue ( OSThreadQueue queue)

◆ OSIsThreadTerminated()

BOOL OSIsThreadTerminated ( OSThread thread)

◆ OSResumeThread()

s32 OSResumeThread ( OSThread thread)

◆ OSSetSwitchThreadCallback()

OSSwitchThreadCallback OSSetSwitchThreadCallback ( OSSwitchThreadCallback  func)

◆ OSSetThreadPriority()

s32 OSSetThreadPriority ( OSThread thread,
s32  priority 
)

◆ OSSleepThread()

void OSSleepThread ( OSThreadQueue queue)

◆ OSSuspendThread()

s32 OSSuspendThread ( OSThread thread)

◆ OSWakeupThread()

void OSWakeupThread ( OSThreadQueue queue)

◆ OSYieldThread()

void OSYieldThread ( void  )

◆ SelectThread()

static OSThread * SelectThread ( BOOL  yield)
static

◆ SetEffectivePriority()

static OSThread * SetEffectivePriority ( OSThread thread,
s32  priority 
)
static

◆ UnsetRun()

static void UnsetRun ( OSThread thread)
static