Files
tp/include/JSystem/JAudio2/JASMutex.h
T

21 lines
317 B
C
Raw Normal View History

2023-08-02 11:30:52 +03:00
#ifndef JASMUTEX_H
#define JASMUTEX_H
#include "dolphin/os/OSMutex.h"
2024-04-12 00:10:30 -06:00
/**
* @ingroup jsystem-jaudio
*
*/
2023-08-02 11:30:52 +03:00
struct JASMutexLock {
JASMutexLock(OSMutex* mutex) {
mMutex = mutex;
OSLockMutex(mMutex);
}
~JASMutexLock() { OSUnlockMutex(mMutex); }
/* 0x0 */ OSMutex* mMutex;
};
#endif