diff options
author | red031000 <rubenru09@aol.com> | 2020-07-27 01:11:45 +0100 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2020-07-27 01:11:45 +0100 |
commit | 7c2a848ecccb95d010d8c0836c5d9c6a96b39da0 (patch) | |
tree | d650d996f8fa9b741b1075d8b897d73c8e7034a7 /arm9/lib/src/OS_thread.c | |
parent | 23873ed88f9920db6ed463fa02157686264369bd (diff) |
some cleanups
Diffstat (limited to 'arm9/lib/src/OS_thread.c')
-rw-r--r-- | arm9/lib/src/OS_thread.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arm9/lib/src/OS_thread.c b/arm9/lib/src/OS_thread.c index 2ecde69a..35e91c22 100644 --- a/arm9/lib/src/OS_thread.c +++ b/arm9/lib/src/OS_thread.c @@ -32,6 +32,19 @@ OSThread OSi_IdleThread; u32 OSi_IdleThreadStack[50]; +static s32 OSi_GetUnusedThreadId(void); +static void OSi_InsertLinkToQueue(OSThreadQueue *queue, OSThread *thread); +static OSThread *OSi_RemoveLinkFromQueue(OSThreadQueue *queue); +static OSThread *OSi_RemoveSpecifiedLinkFromQueue(OSThreadQueue *queue, OSThread *thread); +static void OSi_InsertThreadToList(OSThread *thread); +static void OSi_RemoveThreadFromList(OSThread *thread); +static void OSi_ExitThread_ArgSpecified(OSThread *thread, void *arg); +static void OSi_ExitThread(void *arg); +static void OSi_ExitThread_Destroy(void); +static void OSi_CancelThreadAlarmForSleep(OSThread *thread); +static void OSi_SleepAlarmCallback(void *arg); +static void OSi_IdleThreadProc(void *); + ARM_FUNC static s32 OSi_GetUnusedThreadId(void) { return ++OSi_ThreadIdCount; |