diff options
author | Chris Robinson <[email protected]> | 2018-11-20 10:55:57 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-20 10:55:57 -0800 |
commit | f9e969a3391e1c0622e35ceaf5dc541b7f149c5d (patch) | |
tree | bb730c98c215906f446cf8f4e59ab4f224be229b /Alc/alcontext.h | |
parent | 191ea90de3994f9e98377ea9318c4c7b6885179c (diff) |
Use a standard mutex for the event callback lock
Diffstat (limited to 'Alc/alcontext.h')
-rw-r--r-- | Alc/alcontext.h | 4 |
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}; |