PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
xthbase.h File Reference
#include <thbase.h>
+ Include dependency graph for xthbase.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TSS_THREAD   0
 
#define TSS_DISABLEINTR   3
 
#define TSS_NOTHREAD   4
 
#define TMID_Thread   1
 
#define TMID_Semaphore   2
 
#define TMID_EventFlag   3
 
#define TMID_Mbox   4
 
#define TMID_Vpl   5
 
#define TMID_Fpl   6
 
#define TMID_SleepThread   7
 
#define TMID_DelayThread   8
 
#define TMID_DormantThread   9
 
#define xthbase_IMPORTS_start   DECLARE_IMPORT_TABLE(thbase, 1, 1)
 
#define xthbase_IMPORTS_end   END_IMPORT_TABLE
 
#define I_GetThreadCurrentPriority   DECLARE_IMPORT(42, GetThreadCurrentPriority)
 
#define I_GetSystemTimeLow   DECLARE_IMPORT(43, GetSystemTimeLow)
 
#define I_ReferSystemStatus   DECLARE_IMPORT(44, ReferSystemStatus)
 
#define I_ReferThreadRunStatus   DECLARE_IMPORT(45, ReferThreadRunStatus)
 
#define I_GetThreadStackFreeSize   DECLARE_IMPORT(46, GetThreadStackFreeSize)
 
#define I_GetThreadmanIdList   DECLARE_IMPORT(47, GetThreadmanIdList)
 

Functions

int GetThreadCurrentPriority (void)
 
unsigned int GetSystemTimeLow (void)
 
int ReferSystemStatus (iop_sys_status_t *info, size_t size)
 
int ReferThreadRunStatus (int thid, iop_thread_run_status_t *stat, size_t size)
 
int GetThreadStackFreeSize (int thid)
 
int GetThreadmanIdList (int type, int *readbuf, int readbufsize, int *objectcount)
 

Detailed Description

Additional thbase functions only found in newer IOPRP images

Definition in file xthbase.h.

Macro Definition Documentation

◆ TSS_THREAD

#define TSS_THREAD   0

Definition at line 25 of file xthbase.h.

◆ TSS_DISABLEINTR

#define TSS_DISABLEINTR   3

Definition at line 26 of file xthbase.h.

◆ TSS_NOTHREAD

#define TSS_NOTHREAD   4

Definition at line 27 of file xthbase.h.

◆ TMID_Thread

#define TMID_Thread   1

Definition at line 36 of file xthbase.h.

◆ TMID_Semaphore

#define TMID_Semaphore   2

Definition at line 37 of file xthbase.h.

◆ TMID_EventFlag

#define TMID_EventFlag   3

Definition at line 38 of file xthbase.h.

◆ TMID_Mbox

#define TMID_Mbox   4

Definition at line 39 of file xthbase.h.

◆ TMID_Vpl

#define TMID_Vpl   5

Definition at line 40 of file xthbase.h.

◆ TMID_Fpl

#define TMID_Fpl   6

Definition at line 41 of file xthbase.h.

◆ TMID_SleepThread

#define TMID_SleepThread   7

Definition at line 42 of file xthbase.h.

◆ TMID_DelayThread

#define TMID_DelayThread   8

Definition at line 43 of file xthbase.h.

◆ TMID_DormantThread

#define TMID_DormantThread   9

Definition at line 44 of file xthbase.h.

◆ xthbase_IMPORTS_start

#define xthbase_IMPORTS_start   DECLARE_IMPORT_TABLE(thbase, 1, 1)

Definition at line 48 of file xthbase.h.

◆ xthbase_IMPORTS_end

#define xthbase_IMPORTS_end   END_IMPORT_TABLE

Definition at line 49 of file xthbase.h.

◆ I_GetThreadCurrentPriority

#define I_GetThreadCurrentPriority   DECLARE_IMPORT(42, GetThreadCurrentPriority)

Definition at line 51 of file xthbase.h.

◆ I_GetSystemTimeLow

#define I_GetSystemTimeLow   DECLARE_IMPORT(43, GetSystemTimeLow)

Definition at line 52 of file xthbase.h.

◆ I_ReferSystemStatus

#define I_ReferSystemStatus   DECLARE_IMPORT(44, ReferSystemStatus)

Definition at line 53 of file xthbase.h.

◆ I_ReferThreadRunStatus

#define I_ReferThreadRunStatus   DECLARE_IMPORT(45, ReferThreadRunStatus)

Definition at line 54 of file xthbase.h.

◆ I_GetThreadStackFreeSize

#define I_GetThreadStackFreeSize   DECLARE_IMPORT(46, GetThreadStackFreeSize)

Definition at line 55 of file xthbase.h.

◆ I_GetThreadmanIdList

#define I_GetThreadmanIdList   DECLARE_IMPORT(47, GetThreadmanIdList)

Definition at line 56 of file xthbase.h.

Function Documentation

◆ GetThreadCurrentPriority()

int GetThreadCurrentPriority ( void  )

Definition at line 1086 of file thbase.c.

◆ GetSystemTimeLow()

unsigned int GetSystemTimeLow ( void  )

Definition at line 1095 of file thbase.c.

◆ ReferSystemStatus()

int ReferSystemStatus ( iop_sys_status_t info,
size_t  size 
)

Definition at line 1100 of file thbase.c.

◆ ReferThreadRunStatus()

int ReferThreadRunStatus ( int  thid,
iop_thread_run_status_t stat,
size_t  size 
)

Definition at line 1130 of file thbase.c.

◆ GetThreadStackFreeSize()

int GetThreadStackFreeSize ( int  thid)

Definition at line 1163 of file thbase.c.

◆ GetThreadmanIdList()

int GetThreadmanIdList ( int  type,
int *  readbuf,
int  readbufsize,
int *  objectcount 
)

Definition at line 1196 of file thbase.c.