From fbcbfceb7fe95b974a4bbe46a1726034edde3946 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Sep 2022 18:18:36 -0700 Subject: Replaced deprecated thread_yield with sched_yield. --- src/stable/thread.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/stable') diff --git a/src/stable/thread.cpp b/src/stable/thread.cpp index 7d362e9..5fe034a 100644 --- a/src/stable/thread.cpp +++ b/src/stable/thread.cpp @@ -6,6 +6,7 @@ */ #include "bu/thread.h" +#include namespace Bu { subExceptionDef( ThreadException ); } @@ -73,10 +74,6 @@ bool Bu::Thread::join() void Bu::Thread::yield() { -#ifndef WIN32 - pthread_yield(); -#else sched_yield(); -#endif } -- cgit v1.2.3