mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
21 lines
308 B
C
21 lines
308 B
C
#ifndef JASMUTEX_H
|
|
#define JASMUTEX_H
|
|
|
|
#include <dolphin/os.h>
|
|
|
|
/**
|
|
* @ingroup jsystem-jaudio
|
|
*
|
|
*/
|
|
struct JASMutexLock {
|
|
JASMutexLock(OSMutex* mutex) {
|
|
mMutex = mutex;
|
|
OSLockMutex(mutex);
|
|
}
|
|
~JASMutexLock() { OSUnlockMutex(mMutex); }
|
|
|
|
/* 0x0 */ OSMutex* mMutex;
|
|
};
|
|
|
|
#endif
|