prime/include/dolphin/os/OSMutex.h
Luke Street 329618c585 More main progress; tons of headers & stuff
Former-commit-id: a6e365791b35de8a1c056db8a4833150450c84d9
2022-09-13 00:28:02 -04:00

24 lines
337 B
C

#ifndef _OSMUTEX_H_
#define _OSMUTEX_H_
#include "types.h"
#include "dolphin/os/OSThread.h"
#ifdef __cplusplus
extern "C" {
#endif
struct OSMutex {
OSThreadQueue queue;
OSThread* thread; // the current owner
s32 count; // lock count
OSMutexLink link; // for OSThread.queueMutex
};
#ifdef __cplusplus
}
#endif
#endif