aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcontext.h
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alcontext.h')
-rw-r--r--Alc/alcontext.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/alcontext.h b/Alc/alcontext.h
index ce715bc2..4a056597 100644
--- a/Alc/alcontext.h
+++ b/Alc/alcontext.h
@@ -1,6 +1,8 @@
#ifndef ALCONTEXT_H
#define ALCONTEXT_H
+#include <mutex>
+#include <atomic>
#include <memory>
#include <thread>
@@ -102,7 +104,7 @@ struct ALCcontext_struct {
alsem_t EventSem;
ll_ringbuffer *AsyncEvents{nullptr};
ATOMIC(ALbitfieldSOFT) EnabledEvts{0u};
- almtx_t EventCbLock;
+ std::mutex EventCbLock;
ALEVENTPROCSOFT EventCb{};
void *EventParam{nullptr};