aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcontext.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-18 18:04:27 -0800
committerChris Robinson <[email protected]>2018-11-18 18:04:27 -0800
commitb10e7d08c34bc6d46aaf61ef2a0183e7841b75f3 (patch)
tree52ec62d347eab96dc64beef40fcbfa6bdf7db905 /Alc/alcontext.h
parentef7995cfd086dd1b32d85bf214b66da37e6550c5 (diff)
Use a std::thread for the event thread
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 6a7ac376..5eec2e96 100644
--- a/Alc/alcontext.h
+++ b/Alc/alcontext.h
@@ -1,6 +1,8 @@
#ifndef ALCONTEXT_H
#define ALCONTEXT_H
+#include <thread>
+
#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
@@ -95,7 +97,7 @@ struct ALCcontext_struct {
ATOMIC(ALeffectslotArray*) ActiveAuxSlots{nullptr};
- althrd_t EventThread;
+ std::thread EventThread;
alsem_t EventSem;
ll_ringbuffer *AsyncEvents{nullptr};
ATOMIC(ALbitfieldSOFT) EnabledEvts{0u};