diff options
Diffstat (limited to 'al/state.cpp')
-rw-r--r-- | al/state.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/al/state.cpp b/al/state.cpp index bd62c4e3..6da55d6f 100644 --- a/al/state.cpp +++ b/al/state.cpp @@ -878,6 +878,7 @@ START_API_FUNC ContextRef context{GetContextRef()}; if UNLIKELY(!context) return; + std::lock_guard<std::mutex> _{context->mPropLock}; context->deferUpdates(); } END_API_FUNC @@ -888,6 +889,7 @@ START_API_FUNC ContextRef context{GetContextRef()}; if UNLIKELY(!context) return; + std::lock_guard<std::mutex> _{context->mPropLock}; context->processUpdates(); } END_API_FUNC |