mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-06 02:58:18 -04:00
Implement JASCriticalSection with a regular mutex
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include "JSystem/JAudio2/JASCriticalSection.h"
|
||||
|
||||
#include <mutex>
|
||||
|
||||
static std::recursive_mutex gAudioThreadMutex;
|
||||
|
||||
JASCriticalSection::JASCriticalSection() {
|
||||
gAudioThreadMutex.lock();
|
||||
}
|
||||
|
||||
JASCriticalSection::~JASCriticalSection() {
|
||||
gAudioThreadMutex.unlock();
|
||||
}
|
||||
Reference in New Issue
Block a user