aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp6
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