Skip to content

Commit 298761a

Browse files
committed
add: add function in thbase to get internal structure
1 parent 62aa5c0 commit 298761a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

iop/system/threadman/include/thbase.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ typedef struct _iop_sys_status
114114
unsigned int reserved[8];
115115
} iop_sys_status_t;
116116

117+
extern void *GetThreadmanData(void);
118+
117119
extern int CreateThread(iop_thread_t *thread);
118120
extern int DeleteThread(int thid);
119121

@@ -169,7 +171,9 @@ extern int GetSystemStatusFlag();
169171
#define thbase_IMPORTS \
170172
thbase_IMPORTS_start \
171173
\
172-
I_CreateThread \
174+
I_GetThreadmanData \
175+
\
176+
I_CreateThread \
173177
I_DeleteThread \
174178
\
175179
I_StartThread \
@@ -225,6 +229,7 @@ extern int GetSystemStatusFlag();
225229
#define thbase_IMPORTS_start DECLARE_IMPORT_TABLE(thbase, 1, 1)
226230
#define thbase_IMPORTS_end END_IMPORT_TABLE
227231

232+
#define I_GetThreadmanData DECLARE_IMPORT(3, GetThreadmanData)
228233
#define I_CreateThread DECLARE_IMPORT(4, CreateThread)
229234
#define I_DeleteThread DECLARE_IMPORT(5, DeleteThread)
230235
#define I_StartThread DECLARE_IMPORT(6, StartThread)

0 commit comments

Comments
 (0)