PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
xthbase.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
#ifndef __XTHBASE_H__
17
#define __XTHBASE_H__
18
19
#include <
thbase.h
>
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
// The following was introduced in export version 1.2 (around SDK 2.5.0)
26
27
#define TSS_THREAD 0
28
#define TSS_DISABLEINTR 3
29
#define TSS_NOTHREAD 4
30
31
extern
int
GetThreadCurrentPriority(
void
);
32
extern
unsigned
int
GetSystemTimeLow(
void
);
33
extern
int
ReferSystemStatus(
iop_sys_status_t
*
info
,
size_t
size);
34
extern
int
ReferThreadRunStatus(
int
thid,
iop_thread_run_status_t
*stat,
size_t
size);
35
extern
int
GetThreadStackFreeSize(
int
thid);
36
37
// Type argument for GetThreadmanIdList
38
#define TMID_Thread 1
39
#define TMID_Semaphore 2
40
#define TMID_EventFlag 3
41
#define TMID_Mbox 4
42
#define TMID_Vpl 5
43
#define TMID_Fpl 6
44
#define TMID_SleepThread 7
45
#define TMID_DelayThread 8
46
#define TMID_DormantThread 9
47
48
extern
int
GetThreadmanIdList(
int
type,
int
*readbuf,
int
readbufsize,
int
*objectcount);
49
50
#define xthbase_IMPORTS_start DECLARE_IMPORT_TABLE(thbase, 1, 2)
51
#define xthbase_IMPORTS_end END_IMPORT_TABLE
52
53
#define I_GetThreadCurrentPriority DECLARE_IMPORT(42, GetThreadCurrentPriority)
54
#define I_GetSystemTimeLow DECLARE_IMPORT(43, GetSystemTimeLow)
55
#define I_ReferSystemStatus DECLARE_IMPORT(44, ReferSystemStatus)
56
#define I_ReferThreadRunStatus DECLARE_IMPORT(45, ReferThreadRunStatus)
57
#define I_GetThreadStackFreeSize DECLARE_IMPORT(46, GetThreadStackFreeSize)
58
#define I_GetThreadmanIdList DECLARE_IMPORT(47, GetThreadmanIdList)
59
60
#ifdef __cplusplus
61
}
62
#endif
63
64
#endif
/* __XTHBASE_H__ */
s_info
Definition
xprintf.c:78
thbase.h
_iop_sys_status
Definition
thbase.h:107
_iop_thread_run_status
Definition
thbase.h:93
iop
system
threadman
include
xthbase.h
Generated on Sat Apr 25 2026 11:22:41 for PS2SDK by
1.12.0