summaryrefslogtreecommitdiff
path: root/arm9/lib/include/OS_thread.h
diff options
context:
space:
mode:
authorMade <made111@gmx.de>2020-05-08 23:06:05 +0200
committerMade <made111@gmx.de>2020-05-08 23:06:05 +0200
commitae744a2ea5a31f19330aedd1e264c88b97873c1c (patch)
treea30d34cbfba4e518eb6a7d4a52154ed86d41a428 /arm9/lib/include/OS_thread.h
parent6d3d11491cf6e8289822d2c5ba9cd7e309a5ce11 (diff)
parentf76cec09f8a2995244256d4b097d9eed2bebd34a (diff)
Merge branch 'master' of https://github.com/martmists/pokediamond
Diffstat (limited to 'arm9/lib/include/OS_thread.h')
-rw-r--r--arm9/lib/include/OS_thread.h13
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