diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-07-28 12:21:45 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-07-28 12:21:45 -0400 |
commit | 22c2ecce6e0f920b9bdc0b6e9ca40d0f426b84b8 (patch) | |
tree | abde28c36ffc10b95e36075d8ebd35dc501f9d8f /arm7/lib/src/OS_thread.c | |
parent | c58dec395fd3233bc329b4380841228370b1fb1c (diff) | |
parent | 3aeabb3efb6e7b40de1350550ddf0e347f51908b (diff) |
Merge branch 'master' of github.com:pret/pokediamond into pikalax_work
Diffstat (limited to 'arm7/lib/src/OS_thread.c')
-rw-r--r-- | arm7/lib/src/OS_thread.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arm7/lib/src/OS_thread.c b/arm7/lib/src/OS_thread.c index be3f611d..6db0b4f7 100644 --- a/arm7/lib/src/OS_thread.c +++ b/arm7/lib/src/OS_thread.c @@ -29,6 +29,18 @@ static s32 OSi_ThreadIdCount = 0; OSThread OSi_LauncherThread; OSThread OSi_IdleThread; +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_RescheduleThread(void); +static void OSi_ExitThread_ArgSpecified(OSThread *thread, void *arg); +static void OSi_ExitThread(void *arg); +static void OSi_ExitThread_Destroy(void); +static void OSi_SleepAlarmCallback(void *arg); + ARM_FUNC static s32 OSi_GetUnusedThreadId(void) { return ++OSi_ThreadIdCount; |