mirror of
https://github.com/zeldaret/st
synced 2026-06-02 10:10:19 -04:00
c98c03de39
* match wstring.c * match math_api.c, mbstring.c, mem.c and mem_funcs.c * more progress * build issues * fix non-matching issues * reorganise files * match fdlibm (+ libc progress) * fix jp build * solved some non-matchings and progress * removed types.h usage in libc * match data and add missing delinks for jp
21 lines
498 B
C
21 lines
498 B
C
#ifndef NITROSDK_OS_MUTEX_H
|
|
#define NITROSDK_OS_MUTEX_H
|
|
|
|
#include <nitro/os/thread.h>
|
|
#include <types.h>
|
|
|
|
typedef struct OSMutex {
|
|
/* 0x00 */ OSThreadQueue queue;
|
|
/* 0x08 */ OSThread *thread;
|
|
/* 0x0C */ s32 count;
|
|
/* 0x10 */ OSMutexLinkedList list;
|
|
} OSMutex; // Size: 0x18
|
|
|
|
void OS_InitMutex(OSMutex *mutex);
|
|
void OS_LockMutex(OSMutex *mutex);
|
|
void OS_UnlockMutex(OSMutex *mutex);
|
|
void OS_UnlockAllQueuedThreadMutex(OSThread *thread);
|
|
bool OS_TryLockMutex(OSMutex *mutex);
|
|
|
|
#endif
|