aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alError.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-20 10:55:57 -0800
committerChris Robinson <[email protected]>2018-11-20 10:55:57 -0800
commitf9e969a3391e1c0622e35ceaf5dc541b7f149c5d (patch)
treebb730c98c215906f446cf8f4e59ab4f224be229b /OpenAL32/alError.cpp
parent191ea90de3994f9e98377ea9318c4c7b6885179c (diff)
Use a standard mutex for the event callback lock
Diffstat (limited to 'OpenAL32/alError.cpp')
-rw-r--r--OpenAL32/alError.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alError.cpp b/OpenAL32/alError.cpp
index 16c89273..39c666d2 100644
--- a/OpenAL32/alError.cpp
+++ b/OpenAL32/alError.cpp
@@ -73,7 +73,7 @@ void alSetError(ALCcontext *context, ALenum errorCode, const char *msg, ...)
context->LastError.compare_exchange_strong(curerr, errorCode);
if((context->EnabledEvts.load(std::memory_order_relaxed)&EventType_Error))
{
- std::lock_guard<almtx_t> _{context->EventCbLock};
+ std::lock_guard<std::mutex> _{context->EventCbLock};
ALbitfieldSOFT enabledevts{context->EnabledEvts.load(std::memory_order_relaxed)};
if((enabledevts&EventType_Error) && context->EventCb)
(*context->EventCb)(AL_EVENT_TYPE_ERROR_SOFT, 0, errorCode, msglen, msg,