mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-14 13:34:52 -04:00
16 lines
313 B
C++
16 lines
313 B
C++
#include "JSystem/JAudio2/JASCriticalSection.h"
|
|
|
|
#include <mutex>
|
|
|
|
#include "tracy/Tracy.hpp"
|
|
|
|
static TracyLockable(std::recursive_mutex, gAudioThreadMutex);
|
|
|
|
JASCriticalSection::JASCriticalSection() {
|
|
gAudioThreadMutex.lock();
|
|
}
|
|
|
|
JASCriticalSection::~JASCriticalSection() {
|
|
gAudioThreadMutex.unlock();
|
|
}
|