sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
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
17
#ifndef __XTHBASE_H__
18
#define __XTHBASE_H__
19
20
#include <
thbase.h
>
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
// The following was introduced in export version 1.2 (around SDK 2.5.0)
27
28
#define TSS_THREAD 0
29
#define TSS_DISABLEINTR 3
30
#define TSS_NOTHREAD 4
31
32
extern
int
GetThreadCurrentPriority(
void
);
33
extern
unsigned
int
GetSystemTimeLow(
void
);
34
extern
int
ReferSystemStatus(iop_sys_status_t *info,
size_t
size);
35
extern
int
ReferThreadRunStatus(
int
thid, iop_thread_run_status_t *stat,
size_t
size);
36
extern
int
GetThreadStackFreeSize(
int
thid);
37
38
// Type argument for GetThreadmanIdList
39
#define TMID_Thread 1
40
#define TMID_Semaphore 2
41
#define TMID_EventFlag 3
42
#define TMID_Mbox 4
43
#define TMID_Vpl 5
44
#define TMID_Fpl 6
45
#define TMID_SleepThread 7
46
#define TMID_DelayThread 8
47
#define TMID_DormantThread 9
48
49
extern
int
GetThreadmanIdList(
int
type,
int
*readbuf,
int
readbufsize,
int
*objectcount);
50
51
#define xthbase_IMPORTS_start DECLARE_IMPORT_TABLE(thbase, 1, 2)
52
#define xthbase_IMPORTS_end END_IMPORT_TABLE
53
54
#define I_GetThreadCurrentPriority DECLARE_IMPORT(42, GetThreadCurrentPriority)
55
#define I_GetSystemTimeLow DECLARE_IMPORT(43, GetSystemTimeLow)
56
#define I_ReferSystemStatus DECLARE_IMPORT(44, ReferSystemStatus)
57
#define I_ReferThreadRunStatus DECLARE_IMPORT(45, ReferThreadRunStatus)
58
#define I_GetThreadStackFreeSize DECLARE_IMPORT(46, GetThreadStackFreeSize)
59
#define I_GetThreadmanIdList DECLARE_IMPORT(47, GetThreadmanIdList)
60
61
#ifdef __cplusplus
62
}
63
#endif
64
65
#endif
/* __XTHBASE_H__ */
thbase.h
core
threadman
include
xthbase.h
Generated by
1.18.0