diff options
author | red031000 <rubenru09@aol.com> | 2020-07-27 16:54:00 +0100 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2020-07-27 16:54:00 +0100 |
commit | be7f72c950c6ce67b2c6416af90628a9d5ddc0da (patch) | |
tree | 3f83a35da657e9755da5b2afc4f8c7983d3ded6b /arm7/lib/src | |
parent | c26f0d2dcab4f9ead484b9da13ada6a39c8e932d (diff) |
arm9 OS_mutex
Diffstat (limited to 'arm7/lib/src')
-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; |