diff options
author | red031000 <rubenru09@aol.com> | 2020-05-07 19:16:27 +0100 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2020-05-07 19:16:27 +0100 |
commit | be09adbcb7e47bbc0ccc3994fe405b72cf2a59c6 (patch) | |
tree | f803d972c2825e69547aedf74085e355b4d09377 /arm9/lib/include/OS_thread.h | |
parent | c8255e7f323a58625992973f9777a9928947f310 (diff) |
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 |