summaryrefslogtreecommitdiff
path: root/arm9/lib/include/OS_mutex.h
diff options
context:
space:
mode:
authorCleverking2003 <30466983+Cleverking2003@users.noreply.github.com>2020-05-18 22:26:48 +0300
committerGitHub <noreply@github.com>2020-05-18 22:26:48 +0300
commit00b5f23f454d1cc64d6ca04224925797ebc7d1e7 (patch)
treeb2a3cf8c66fc00bc77a34755e25ac54d44097455 /arm9/lib/include/OS_mutex.h
parent4c3e5d526588c546d20cd82613ea57396bebb64b (diff)
parentd8dcd1fef93929fc8905ee62c2bf627cb8e8db25 (diff)
Merge pull request #95 from red031000/master
fill out _OSThread
Diffstat (limited to 'arm9/lib/include/OS_mutex.h')
-rw-r--r--arm9/lib/include/OS_mutex.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/arm9/lib/include/OS_mutex.h b/arm9/lib/include/OS_mutex.h
new file mode 100644
index 00000000..5db66fbe
--- /dev/null
+++ b/arm9/lib/include/OS_mutex.h
@@ -0,0 +1,18 @@
+//
+// Created by red031000 on 2020-05-17.
+//
+
+#ifndef POKEDIAMOND_OS_MUTEX_H
+#define POKEDIAMOND_OS_MUTEX_H
+
+#include "types.h"
+#include "OS_thread.h"
+
+struct OSMutex {
+ OSThreadQueue queue;
+ OSThread *thread;
+ s32 count;
+ OSMutexLink link;
+};
+
+#endif //POKEDIAMOND_OS_MUTEX_H