aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index 58b2349f..ba693616 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -1624,7 +1624,7 @@ void ALCcontext_ProcessUpdates(ALCcontext *context)
*/
context->HoldUpdates.store(AL_TRUE);
while((context->UpdateCount.load(std::memory_order_acquire)&1) != 0)
- althrd_yield();
+ std::this_thread::yield();
if(!context->PropsClean.test_and_set(std::memory_order_acq_rel))
UpdateContextProps(context);
@@ -3434,7 +3434,7 @@ ALC_API void ALC_APIENTRY alcGetInteger64vSOFT(ALCdevice *device, ALCenum pname,
ALuint refcount;
do {
while(((refcount=ReadRef(&dev->MixCount))&1) != 0)
- althrd_yield();
+ std::this_thread::yield();
basecount = dev->ClockBase;
samplecount = dev->SamplesDone;
} while(refcount != ReadRef(&dev->MixCount));