diff options
author | Revo <projectrevotpp@hotmail.com> | 2020-05-08 10:44:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-08 10:44:07 -0400 |
commit | f76cec09f8a2995244256d4b097d9eed2bebd34a (patch) | |
tree | d3a3270ca2c2f3895378d1681350bc7636ed0c10 /arm9/lib/include/OS_thread.h | |
parent | df51b3c4ff11fc6302600298d3f18681101196b1 (diff) | |
parent | 4d444cabe0a241afd7d12e565c6a32f866b260bd (diff) |
Merge pull request #70 from red031000/master
OS_terminate_proc and partial OS_interrupt
Diffstat (limited to 'arm9/lib/include/OS_thread.h')
-rw-r--r-- | arm9/lib/include/OS_thread.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arm9/lib/include/OS_thread.h b/arm9/lib/include/OS_thread.h index 4fb70bf7..49ae9f15 100644 --- a/arm9/lib/include/OS_thread.h +++ b/arm9/lib/include/OS_thread.h @@ -7,6 +7,14 @@ typedef struct _OSThread OSThread; +struct _OSThreadQueue +{ + OSThread *head; + OSThread *tail; +}; + +typedef struct _OSThreadQueue OSThreadQueue; + typedef struct OSThreadInfo { u16 isNeedRescheduling; u16 irqDepth; @@ -20,4 +28,9 @@ struct _OSThread u8 padding[0x80]; //todo: not the correct size but idfk }; +static inline void OS_InitThreadQueue(OSThreadQueue * queue) +{ + queue->head = queue->tail = NULL; +} + #endif //POKEDIAMOND_OS_THREAD_H |