Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Data Structures | Macros | Typedefs | Functions
os_thread.h File Reference

Go to the source code of this file.

Data Structures

union  __OSfp
 
struct  __OSThreadContext
 
struct  __OSThreadprofile_s
 
struct  OSThread_s
 

Macros

#define OS_PRIORITY_MAX   255
 
#define OS_PRIORITY_VIMGR   254
 
#define OS_PRIORITY_RMON   250
 
#define OS_PRIORITY_RMONSPIN   200
 
#define OS_PRIORITY_PIMGR   150
 
#define OS_PRIORITY_SIMGR   140
 
#define OS_PRIORITY_APPMAX   127
 
#define OS_PRIORITY_IDLE   0
 
#define OS_STATE_STOPPED   1
 
#define OS_STATE_RUNNABLE   2
 
#define OS_STATE_RUNNING   4
 
#define OS_STATE_WAITING   8
 

Typedefs

typedef s32 OSPri
 
typedef s32 OSId
 
typedef struct OSThread_s OSThread
 

Functions

void osCreateThread (OSThread *thread, OSId id, void(*entry)(void *), void *arg, void *sp, OSPri pri)
 
OSId osGetThreadId (OSThread *thread)
 
OSPri osGetThreadPri (OSThread *thread)
 
void osSetThreadPri (OSThread *thread, OSPri pri)
 
void osStartThread (OSThread *thread)
 
void osStopThread (OSThread *thread)
 

Macro Definition Documentation

◆ OS_PRIORITY_APPMAX

#define OS_PRIORITY_APPMAX   127

◆ OS_PRIORITY_IDLE

#define OS_PRIORITY_IDLE   0

◆ OS_PRIORITY_MAX

#define OS_PRIORITY_MAX   255

◆ OS_PRIORITY_PIMGR

#define OS_PRIORITY_PIMGR   150

◆ OS_PRIORITY_RMON

#define OS_PRIORITY_RMON   250

◆ OS_PRIORITY_RMONSPIN

#define OS_PRIORITY_RMONSPIN   200

◆ OS_PRIORITY_SIMGR

#define OS_PRIORITY_SIMGR   140

◆ OS_PRIORITY_VIMGR

#define OS_PRIORITY_VIMGR   254

◆ OS_STATE_RUNNABLE

#define OS_STATE_RUNNABLE   2

◆ OS_STATE_RUNNING

#define OS_STATE_RUNNING   4

◆ OS_STATE_STOPPED

#define OS_STATE_STOPPED   1

◆ OS_STATE_WAITING

#define OS_STATE_WAITING   8

Typedef Documentation

◆ OSId

◆ OSPri

◆ OSThread

Function Documentation

◆ osCreateThread()

void osCreateThread ( OSThread thread,
OSId  id,
void(*)(void *)  entry,
void arg,
void sp,
OSPri  pri 
)

◆ osGetThreadId()

OSId osGetThreadId ( OSThread thread)

◆ osGetThreadPri()

OSPri osGetThreadPri ( OSThread thread)

◆ osSetThreadPri()

void osSetThreadPri ( OSThread thread,
OSPri  pri 
)

◆ osStartThread()

void osStartThread ( OSThread thread)

◆ osStopThread()

void osStopThread ( OSThread thread)