summaryrefslogtreecommitdiff
path: root/include/nitro/OS_mutex_shared.h
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-06-20 09:19:42 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-06-20 09:19:42 -0400
commita16371f513daf21948e372a3955f4cfa0d89a141 (patch)
tree7029add9f3cd169307e1023a4b0ae7552b9afeff /include/nitro/OS_mutex_shared.h
parent1386f29730b42a640fde1d568255dc10be4ac759 (diff)
parent0c8b5417cee5ff73f9db4b691c7549e82fdc30bd (diff)
Merge branch 'pikalax_work' of github.com:PikalaxALT/pokediamond into pikalax_work
Diffstat (limited to 'include/nitro/OS_mutex_shared.h')
-rw-r--r--include/nitro/OS_mutex_shared.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/nitro/OS_mutex_shared.h b/include/nitro/OS_mutex_shared.h
new file mode 100644
index 00000000..e3c93e47
--- /dev/null
+++ b/include/nitro/OS_mutex_shared.h
@@ -0,0 +1,26 @@
+/*
+ * NOTE:
+ * This file is shared between ARM9 and ARM7
+ * DO NOT PUT PROC SPECIFIC CODE IN HERE
+ * Thank You!
+ */
+
+/*
+ * DO NOT INCLUDE THIS FILE DIRECTLY
+ * Include OS_mutex.h from the specific proc's lib
+ */
+
+#ifndef POKEDIAMOND_OS_MUTEX_SHARED_H
+#define POKEDIAMOND_OS_MUTEX_SHARED_H
+
+#include "nitro/OS_thread_shared.h"
+#include "nitro/types.h"
+
+struct OSMutex {
+ OSThreadQueue queue;
+ OSThread *thread;
+ s32 count;
+ OSMutexLink link;
+};
+
+#endif //POKEDIAMOND_OS_MUTEX_SHARED_H