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 /alc/alc.cpp | |
parent | 370f8623929f6c4cd245ac79b8569f1be53e6c51 (diff) |
Hold mPropLock when deferring updates
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 82e31667..1659593f 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2292,7 +2292,10 @@ START_API_FUNC if(!ctx) alcSetError(nullptr, ALC_INVALID_CONTEXT); else + { + std::lock_guard<std::mutex> _{ctx->mPropLock}; ctx->deferUpdates(); + } } END_API_FUNC @@ -2306,7 +2309,10 @@ START_API_FUNC if(!ctx) alcSetError(nullptr, ALC_INVALID_CONTEXT); else + { + std::lock_guard<std::mutex> _{ctx->mPropLock}; ctx->processUpdates(); + } } END_API_FUNC |