aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/event.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-26 23:06:49 -0800
committerChris Robinson <[email protected]>2018-11-26 23:06:49 -0800
commitd06f76957c6ea2bf5311322e103946b45bde9796 (patch)
tree81ccb8de0a66a74568821bca8f09b9705851ac08 /OpenAL32/event.cpp
parent4c1fc3ae00ad4890708a8789539eea4556b0634c (diff)
Remove althrd_yield
Diffstat (limited to 'OpenAL32/event.cpp')
-rw-r--r--OpenAL32/event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/event.cpp b/OpenAL32/event.cpp
index 233794bd..a47787bd 100644
--- a/OpenAL32/event.cpp
+++ b/OpenAL32/event.cpp
@@ -65,7 +65,7 @@ void StopEventThrd(ALCcontext *ctx)
{
static constexpr AsyncEvent kill_evt = ASYNC_EVENT(EventType_KillThread);
while(ll_ringbuffer_write(ctx->AsyncEvents, &kill_evt, 1) == 0)
- althrd_yield();
+ std::this_thread::yield();
alsem_post(&ctx->EventSem);
if(ctx->EventThread.joinable())
ctx->EventThread.join();