sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
xthbase.h File Reference
#include <thbase.h>

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, 2)
#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

◆ I_GetSystemTimeLow

#define I_GetSystemTimeLow   DECLARE_IMPORT(43, GetSystemTimeLow)

Definition at line 55 of file xthbase.h.

◆ I_GetThreadCurrentPriority

#define I_GetThreadCurrentPriority   DECLARE_IMPORT(42, GetThreadCurrentPriority)

Definition at line 54 of file xthbase.h.

◆ I_GetThreadmanIdList

#define I_GetThreadmanIdList   DECLARE_IMPORT(47, GetThreadmanIdList)

Definition at line 59 of file xthbase.h.

◆ I_GetThreadStackFreeSize

#define I_GetThreadStackFreeSize   DECLARE_IMPORT(46, GetThreadStackFreeSize)

Definition at line 58 of file xthbase.h.

◆ I_ReferSystemStatus

#define I_ReferSystemStatus   DECLARE_IMPORT(44, ReferSystemStatus)

Definition at line 56 of file xthbase.h.

◆ I_ReferThreadRunStatus

#define I_ReferThreadRunStatus   DECLARE_IMPORT(45, ReferThreadRunStatus)

Definition at line 57 of file xthbase.h.

◆ TMID_DelayThread

#define TMID_DelayThread   8

Definition at line 46 of file xthbase.h.

◆ TMID_DormantThread

#define TMID_DormantThread   9

Definition at line 47 of file xthbase.h.

◆ TMID_EventFlag

#define TMID_EventFlag   3

Definition at line 41 of file xthbase.h.

◆ TMID_Fpl

#define TMID_Fpl   6

Definition at line 44 of file xthbase.h.

◆ TMID_Mbox

#define TMID_Mbox   4

Definition at line 42 of file xthbase.h.

◆ TMID_Semaphore

#define TMID_Semaphore   2

Definition at line 40 of file xthbase.h.

◆ TMID_SleepThread

#define TMID_SleepThread   7

Definition at line 45 of file xthbase.h.

◆ TMID_Thread

#define TMID_Thread   1

Definition at line 39 of file xthbase.h.

◆ TMID_Vpl

#define TMID_Vpl   5

Definition at line 43 of file xthbase.h.

◆ TSS_DISABLEINTR

#define TSS_DISABLEINTR   3

Definition at line 29 of file xthbase.h.

◆ TSS_NOTHREAD

#define TSS_NOTHREAD   4

Definition at line 30 of file xthbase.h.

◆ TSS_THREAD

#define TSS_THREAD   0

Definition at line 28 of file xthbase.h.

◆ xthbase_IMPORTS_end

#define xthbase_IMPORTS_end   END_IMPORT_TABLE

Definition at line 52 of file xthbase.h.

◆ xthbase_IMPORTS_start

#define xthbase_IMPORTS_start   DECLARE_IMPORT_TABLE(thbase, 1, 2)

Definition at line 51 of file xthbase.h.

Function Documentation

◆ GetSystemTimeLow()

unsigned int GetSystemTimeLow ( void )
extern

Definition at line 1094 of file thbase.c.

◆ GetThreadCurrentPriority()

int GetThreadCurrentPriority ( void )
extern

Definition at line 1085 of file thbase.c.

◆ GetThreadmanIdList()

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

Definition at line 1195 of file thbase.c.

◆ GetThreadStackFreeSize()

int GetThreadStackFreeSize ( int thid)
extern

Definition at line 1162 of file thbase.c.

◆ ReferSystemStatus()

int ReferSystemStatus ( iop_sys_status_t * info,
size_t size )
extern

Definition at line 1099 of file thbase.c.

◆ ReferThreadRunStatus()

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

Definition at line 1129 of file thbase.c.