mirror of
https://github.com/zeldaret/tp
synced 2026-05-24 07:11:06 -04:00
2453c0e333
* move dolsdk2004 over * cleanup some temp work * finish and cleanup gf * b_bh done * d_a_e_mb done
21 lines
309 B
C
21 lines
309 B
C
#ifndef JASMUTEX_H
|
|
#define JASMUTEX_H
|
|
|
|
#include <dolphin/os.h>
|
|
|
|
/**
|
|
* @ingroup jsystem-jaudio
|
|
*
|
|
*/
|
|
struct JASMutexLock {
|
|
JASMutexLock(OSMutex* mutex) {
|
|
mMutex = mutex;
|
|
OSLockMutex(mMutex);
|
|
}
|
|
~JASMutexLock() { OSUnlockMutex(mMutex); }
|
|
|
|
/* 0x0 */ OSMutex* mMutex;
|
|
};
|
|
|
|
#endif
|