diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2020-07-27 12:43:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 12:43:27 -0400 |
commit | d9ea992246a6d29133fc5accb03cfb8dcc4665f6 (patch) | |
tree | 3f83a35da657e9755da5b2afc4f8c7983d3ded6b /arm7/lib/src/OS_thread.c | |
parent | bb6d2a9a3178b421ed5c6cb738e93257834d1f54 (diff) | |
parent | be7f72c950c6ce67b2c6416af90628a9d5ddc0da (diff) |
Merge pull request #246 from red031000/master
arm 7 shiftable + 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; |