aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
Diffstat (limited to 'alc')
-rw-r--r--alc/alc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 8d40e784..bd88023b 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -1627,8 +1627,9 @@ void ALCcontext::processUpdates()
* updating to finish, before providing updates.
*/
mHoldUpdates.store(true, std::memory_order_release);
- while((mUpdateCount.load(std::memory_order_acquire)&1) != 0)
- std::this_thread::yield();
+ while((mUpdateCount.load(std::memory_order_acquire)&1) != 0) {
+ /* busy-wait */
+ }
if(!mPropsClean.test_and_set(std::memory_order_acq_rel))
UpdateContextProps(this);