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

Functions

void _epilog ()
 
static void DefaultSwitchThreadCallback (OSThread *from, OSThread *to)
 
OSSwitchThreadCallback OSSetSwitchThreadCallback (OSSwitchThreadCallback func)
 
static void OSInitMutexQueue (OSMutexQueue *queue)
 
static void OSSetCurrentThread (OSThread *thread)
 
void __OSThreadInit ()
 
void OSInitThreadQueue (OSThreadQueue *queue)
 
OSThreadOSGetCurrentThread (void)
 
BOOL OSIsThreadTerminated (OSThread *thread)
 
s32 OSDisableScheduler (void)
 
s32 OSEnableScheduler (void)
 
static void SetRun (OSThread *thread)
 
static void UnsetRun (OSThread *thread)
 
s32 __OSGetEffectivePriority (OSThread *thread)
 
static OSThreadSetEffectivePriority (OSThread *thread, s32 priority)
 
static void UpdatePriority (OSThread *thread)
 
void __OSPromoteThread (OSThread *thread, s32 priority)
 
static void __OSSwitchThread (OSThread *nextThread)
 
OSThreadi_OSGetCurrentThread (void)
 
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)
 
s32 CheckThreadQueue (OSThreadQueue *thread)
 
static BOOL isMember (OSThreadQueue *queue, OSThread *thread)
 
s32 OSCheckActiveThreads (void)
 
void OSClearStack (u8 val)
 
u8 Debug_BBA_804516D0 ALIGN_DECL (8)
 

Variables

OSThread__OSCurrentThread
 
OSThreadQueue __OSActiveThreadQueue
 
volatile OSContext __OSCurrentContext
 
volatile OSContext__OSFPUContext
 
OSErrorHandlerEx __OSErrorTable [17]
 
u32 __OSFpscrEnableBits
 
static OSSwitchThreadCallback SwitchThreadCallback = DefaultSwitchThreadCallback
 
static OSThreadQueue RunQueue [32]
 
static OSThread IdleThread
 
static OSThread DefaultThread
 
static OSContext IdleContext
 
static vu32 RunQueueBits
 
static volatile BOOL RunQueueHint
 
static volatile s32 Reschedule
 
u8 _stack_end []
 
u8 _stack_addr []
 
u8 Debug_BBA_804516D0
 

Function Documentation

◆ __OSGetEffectivePriority()

s32 __OSGetEffectivePriority ( OSThread thread)

◆ __OSPromoteThread()

void __OSPromoteThread ( OSThread thread,
s32  priority 
)

◆ __OSReschedule()

void __OSReschedule ( void  )

◆ __OSSwitchThread()

static void __OSSwitchThread ( OSThread nextThread)
inlinestatic

◆ __OSThreadInit()

void __OSThreadInit ( void  )

◆ _epilog()

void _epilog ( )

◆ ALIGN_DECL()

u8 Debug_BBA_804516D0 ALIGN_DECL ( )

◆ CheckThreadQueue()

s32 CheckThreadQueue ( OSThreadQueue thread)

◆ DefaultSwitchThreadCallback()

static void DefaultSwitchThreadCallback ( OSThread from,
OSThread to 
)
static

◆ i_OSGetCurrentThread()

OSThread * i_OSGetCurrentThread ( void  )
inline

◆ isMember()

static BOOL isMember ( OSThreadQueue queue,
OSThread thread 
)
static

◆ OSCancelThread()

void OSCancelThread ( OSThread thread)

◆ OSCheckActiveThreads()

s32 OSCheckActiveThreads ( void  )

◆ OSClearStack()

void OSClearStack ( u8  val)

◆ 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)

◆ OSInitMutexQueue()

static void OSInitMutexQueue ( OSMutexQueue queue)
inlinestatic

◆ OSInitThreadQueue()

void OSInitThreadQueue ( OSThreadQueue queue)

◆ OSIsThreadTerminated()

BOOL OSIsThreadTerminated ( OSThread thread)

◆ OSResumeThread()

s32 OSResumeThread ( OSThread thread)

◆ OSSetCurrentThread()

static void OSSetCurrentThread ( OSThread thread)
inlinestatic

◆ 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

◆ SetRun()

static void SetRun ( OSThread thread)
inlinestatic

◆ UnsetRun()

static void UnsetRun ( OSThread thread)
static

◆ UpdatePriority()

static void UpdatePriority ( OSThread thread)
static

Variable Documentation

◆ __OSActiveThreadQueue

OSThreadQueue __OSActiveThreadQueue

◆ __OSCurrentContext

volatile OSContext __OSCurrentContext

◆ __OSCurrentThread

OSThread* __OSCurrentThread

◆ __OSErrorTable

OSErrorHandlerEx __OSErrorTable[17]
extern

◆ __OSFpscrEnableBits

u32 __OSFpscrEnableBits
extern

◆ __OSFPUContext

volatile OSContext* __OSFPUContext

◆ _stack_addr

u8 _stack_addr[]
extern

◆ _stack_end

u8 _stack_end[]
extern

◆ Debug_BBA_804516D0

u8 Debug_BBA_804516D0
extern

◆ DefaultThread

OSThread DefaultThread
static

◆ IdleContext

OSContext IdleContext
static

◆ IdleThread

OSThread IdleThread
static

◆ Reschedule

volatile s32 Reschedule
static

◆ RunQueue

OSThreadQueue RunQueue[32]
static

◆ RunQueueBits

vu32 RunQueueBits
static

◆ RunQueueHint

volatile BOOL RunQueueHint
static

◆ SwitchThreadCallback

OSSwitchThreadCallback SwitchThreadCallback = DefaultSwitchThreadCallback
static