Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
OSThread.h File Reference

Go to the source code of this file.

Classes

struct  OSThreadQueue
 
struct  OSThreadLink
 
struct  OSMutexQueue
 
struct  OSMutexLink
 
struct  OSThread
 

Typedefs

typedef s32 OSPriority
 
typedef struct OSThread OSThread
 
typedef struct OSMutex OSMutex
 
typedef struct OSThreadQueue OSThreadQueue
 
typedef struct OSMutexQueue OSMutexQueue
 
typedef struct OSThreadLink OSThreadLink
 
typedef struct OSMutexLink OSMutexLink
 
typedef void(* OSSwitchThreadCallback) (OSThread *, OSThread *)
 
typedef void(* OSIdleFunction) (void *)
 

Enumerations

enum  OS_THREAD_STATE { OS_THREAD_STATE_READY = 1 , OS_THREAD_STATE_RUNNING = 2 , OS_THREAD_STATE_WAITING = 4 , OS_THREAD_STATE_MORIBUND = 8 }
 

Functions

void OSInitThreadQueue (OSThreadQueue *queue)
 
void OSSleepThread (OSThreadQueue *queue)
 
void OSWakeupThread (OSThreadQueue *queue)
 
s32 OSSuspendThread (OSThread *thread)
 
s32 OSResumeThread (OSThread *thread)
 
OSThreadOSGetCurrentThread (void)
 
s32 OSEnableScheduler (void)
 
s32 OSDisableScheduler (void)
 
void OSCancelThread (OSThread *thread)
 
void OSClearStack (u8 val)
 
BOOL OSIsThreadSuspended (OSThread *thread)
 
BOOL OSIsThreadTerminated (OSThread *thread)
 
void OSYieldThread (void)
 
int OSCreateThread (OSThread *thread, void *(*func)(void *), void *param, void *stack, u32 stackSize, OSPriority priority, u16 attr)
 
void OSExitThread (void *val)
 
int OSJoinThread (OSThread *thread, void *val)
 
void OSDetachThread (OSThread *thread)
 
int OSSetThreadPriority (OSThread *thread, OSPriority priority)
 
s32 OSGetThreadPriority (OSThread *thread)
 
OSThreadOSSetIdleFunction (OSIdleFunction idleFunction, void *param, void *stack, u32 stackSize)
 
OSThreadOSGetIdleFunction (void)
 
s32 OSCheckActiveThreads (void)
 
void OSSetThreadSpecific (s32 index, void *ptr)
 
void * OSGetThreadSpecific (s32 index)
 
OSSwitchThreadCallback OSSetSwitchThreadCallback (OSSwitchThreadCallback callback)
 

Typedef Documentation

◆ OSIdleFunction

typedef void(* OSIdleFunction) (void *)

◆ OSMutex

typedef struct OSMutex OSMutex

◆ OSMutexLink

typedef struct OSMutexLink OSMutexLink

◆ OSMutexQueue

typedef struct OSMutexQueue OSMutexQueue

◆ OSPriority

typedef s32 OSPriority

◆ OSSwitchThreadCallback

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

◆ OSThread

typedef struct OSThread OSThread

◆ OSThreadLink

typedef struct OSThreadLink OSThreadLink

◆ OSThreadQueue

typedef struct OSThreadQueue OSThreadQueue

Enumeration Type Documentation

◆ OS_THREAD_STATE

Enumerator
OS_THREAD_STATE_READY 
OS_THREAD_STATE_RUNNING 
OS_THREAD_STATE_WAITING 
OS_THREAD_STATE_MORIBUND 

Function Documentation

◆ OSCancelThread()

void OSCancelThread ( OSThread * thread)

◆ OSCheckActiveThreads()

s32 OSCheckActiveThreads ( void )

◆ OSClearStack()

void OSClearStack ( u8 val)

◆ OSCreateThread()

int OSCreateThread ( OSThread * thread,
void *(* func )(void *),
void * param,
void * stack,
u32 stackSize,
OSPriority priority,
u16 attr )

◆ OSDetachThread()

void OSDetachThread ( OSThread * thread)

◆ OSDisableScheduler()

s32 OSDisableScheduler ( void )

◆ OSEnableScheduler()

s32 OSEnableScheduler ( void )

◆ OSExitThread()

void OSExitThread ( void * val)

◆ OSGetCurrentThread()

OSThread * OSGetCurrentThread ( void )

◆ OSGetIdleFunction()

OSThread * OSGetIdleFunction ( void )

◆ OSGetThreadPriority()

s32 OSGetThreadPriority ( OSThread * thread)

◆ OSGetThreadSpecific()

void * OSGetThreadSpecific ( s32 index)

◆ OSInitThreadQueue()

void OSInitThreadQueue ( OSThreadQueue * queue)

◆ OSIsThreadSuspended()

BOOL OSIsThreadSuspended ( OSThread * thread)

◆ OSIsThreadTerminated()

BOOL OSIsThreadTerminated ( OSThread * thread)

◆ OSJoinThread()

int OSJoinThread ( OSThread * thread,
void * val )

◆ OSResumeThread()

s32 OSResumeThread ( OSThread * thread)

◆ OSSetIdleFunction()

OSThread * OSSetIdleFunction ( OSIdleFunction idleFunction,
void * param,
void * stack,
u32 stackSize )

◆ OSSetSwitchThreadCallback()

OSSwitchThreadCallback OSSetSwitchThreadCallback ( OSSwitchThreadCallback callback)

◆ OSSetThreadPriority()

int OSSetThreadPriority ( OSThread * thread,
OSPriority priority )

◆ OSSetThreadSpecific()

void OSSetThreadSpecific ( s32 index,
void * ptr )

◆ OSSleepThread()

void OSSleepThread ( OSThreadQueue * queue)

◆ OSSuspendThread()

s32 OSSuspendThread ( OSThread * thread)

◆ OSWakeupThread()

void OSWakeupThread ( OSThreadQueue * queue)

◆ OSYieldThread()

void OSYieldThread ( void )