diff options
author | red031000 <rubenru09@aol.com> | 2020-07-27 16:54:00 +0100 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-08-03 15:58:15 -0400 |
commit | 30586b4e9fc25b8960bb27595dea2f590d2e1786 (patch) | |
tree | 026f527f349121cfd710ec2e0ed298a97f53b4db /arm7/lib/src/OS_thread.c | |
parent | 1de7208cff412d2defd9593769eb98d35e4f9f60 (diff) |
arm9 OS_mutex
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; |