diff options
author | Chris Robinson <[email protected]> | 2022-02-08 09:39:02 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-02-08 09:39:02 -0800 |
commit | 843cff0537ca07446ab01421ffc7aa6181414502 (patch) | |
tree | 73d8c96794879f9ea8abe717e0d5f105ca6c3b15 /al/state.cpp | |
parent | 370f8623929f6c4cd245ac79b8569f1be53e6c51 (diff) |
Hold mPropLock when deferring updates
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 |