mirror of
https://github.com/zeldaret/ss
synced 2026-05-24 23:21:41 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
29 lines
584 B
C
29 lines
584 B
C
#ifndef RVL_SDK_OS_MUTEX_H
|
|
#define RVL_SDK_OS_MUTEX_H
|
|
#include "common.h"
|
|
#include "rvl/OS/OSThread.h"
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OSMutex {
|
|
OSThreadQueue queue; // at 0x0
|
|
OSThread *thread; // at 0x8
|
|
s32 lock; // at 0xC
|
|
struct OSMutex *next; // at 0x10
|
|
struct OSMutex *prev; // at 0x14
|
|
} OSMutex;
|
|
|
|
void OSInitMutex(OSMutex *mutex);
|
|
void OSLockMutex(OSMutex *mutex);
|
|
void OSUnlockMutex(OSMutex *mutex);
|
|
void __OSUnlockAllMutex(OSThread *thread);
|
|
BOOL OSTryLockMutex(OSMutex *mutex);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|