From fc177ec7c3976d54b24ef480a29b301ef26e7073 Mon Sep 17 00:00:00 2001 From: red031000 Date: Sun, 17 May 2020 17:43:10 +0100 Subject: fill out _OSThread --- arm9/lib/include/OS_mutex.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 arm9/lib/include/OS_mutex.h (limited to 'arm9/lib/include/OS_mutex.h') diff --git a/arm9/lib/include/OS_mutex.h b/arm9/lib/include/OS_mutex.h new file mode 100644 index 00000000..abd79724 --- /dev/null +++ b/arm9/lib/include/OS_mutex.h @@ -0,0 +1,20 @@ +// +// Created by red031000 on 2020-05-17. +// + +#ifndef POKEDIAMOND_OS_MUTEX_H +#define POKEDIAMOND_OS_MUTEX_H + +#include "types.h" +#include "OS_thread.h" + +#pragma warn_padding off //apparently needed? +struct OSMutex { + OSThreadQueue queue; + OSThread *thread; + s32 count; + OSMutexLink link; +}; +#pragma warn_padding reset + +#endif //POKEDIAMOND_OS_MUTEX_H -- cgit v1.2.3 From d8dcd1fef93929fc8905ee62c2bf627cb8e8db25 Mon Sep 17 00:00:00 2001 From: red031000 Date: Mon, 18 May 2020 20:16:42 +0100 Subject: remove pragma --- arm9/lib/include/OS_mutex.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'arm9/lib/include/OS_mutex.h') diff --git a/arm9/lib/include/OS_mutex.h b/arm9/lib/include/OS_mutex.h index abd79724..5db66fbe 100644 --- a/arm9/lib/include/OS_mutex.h +++ b/arm9/lib/include/OS_mutex.h @@ -8,13 +8,11 @@ #include "types.h" #include "OS_thread.h" -#pragma warn_padding off //apparently needed? struct OSMutex { OSThreadQueue queue; OSThread *thread; s32 count; OSMutexLink link; }; -#pragma warn_padding reset #endif //POKEDIAMOND_OS_MUTEX_H -- cgit v1.2.3