From d06f76957c6ea2bf5311322e103946b45bde9796 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 26 Nov 2018 23:06:49 -0800 Subject: Remove althrd_yield --- Alc/backends/base.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Alc/backends/base.cpp') diff --git a/Alc/backends/base.cpp b/Alc/backends/base.cpp index e4c7588c..85f4b034 100644 --- a/Alc/backends/base.cpp +++ b/Alc/backends/base.cpp @@ -3,6 +3,8 @@ #include +#include + #include "alMain.h" #include "alu.h" @@ -56,7 +58,7 @@ ClockLatency ALCbackend_getClockLatency(ALCbackend *self) do { while(((refcount=device->MixCount.load(std::memory_order_acquire))&1)) - althrd_yield(); + std::this_thread::yield(); ret.ClockTime = GetDeviceClockTime(device); std::atomic_thread_fence(std::memory_order_acquire); } while(refcount != device->MixCount.load(std::memory_order_relaxed)); -- cgit v1.2.3