Mario Kart 64
Loading...
Searching...
No Matches
os_thread.h File Reference
#include "ultratypes.h"
Include dependency graph for os_thread.h:
This graph shows which files directly or indirectly include this file:

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

typedef s32 OSId

◆ OSPri

typedef s32 OSPri

◆ OSThread

typedef struct OSThread_s OSThread

Function Documentation

◆ osCreateThread()

void osCreateThread ( OSThread * thread,
OSId id,
void(* entry )(void *),
void * arg,
void * sp,
OSPri pri )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ osGetThreadId()

OSId osGetThreadId ( OSThread * thread)

◆ osGetThreadPri()

OSPri osGetThreadPri ( OSThread * thread)
Here is the caller graph for this function:

◆ osSetThreadPri()

void osSetThreadPri ( OSThread * thread,
OSPri pri )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ osStartThread()

void osStartThread ( OSThread * thread)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ osStopThread()

void osStopThread ( OSThread * thread)