mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-20 05:16:24 -04:00
14 lines
269 B
C++
14 lines
269 B
C++
#include "JSystem/JAudio2/JASCriticalSection.h"
|
|
|
|
#include <mutex>
|
|
|
|
static std::recursive_mutex gAudioThreadMutex;
|
|
|
|
JASCriticalSection::JASCriticalSection() {
|
|
gAudioThreadMutex.lock();
|
|
}
|
|
|
|
JASCriticalSection::~JASCriticalSection() {
|
|
gAudioThreadMutex.unlock();
|
|
}
|