From 843cff0537ca07446ab01421ffc7aa6181414502 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 8 Feb 2022 09:39:02 -0800 Subject: Hold mPropLock when deferring updates --- al/state.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'al/state.cpp') 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 _{context->mPropLock}; context->deferUpdates(); } END_API_FUNC @@ -888,6 +889,7 @@ START_API_FUNC ContextRef context{GetContextRef()}; if UNLIKELY(!context) return; + std::lock_guard _{context->mPropLock}; context->processUpdates(); } END_API_FUNC -- cgit v1.2.3