From 701300e8e9be446e04afb4731b18100783032ff9 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Sat, 18 Dec 2021 19:43:17 +0300 Subject: [PATCH] [Linux] Use sched_yield instead of the deprecated pthread_yield --- src/xenia/base/threading_posix.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/xenia/base/threading_posix.cc b/src/xenia/base/threading_posix.cc index 05fc616b7..813758a4b 100644 --- a/src/xenia/base/threading_posix.cc +++ b/src/xenia/base/threading_posix.cc @@ -14,6 +14,7 @@ #include "xenia/base/platform.h" #include +#include #include #include #include @@ -28,7 +29,6 @@ #if XE_PLATFORM_ANDROID #include -#include #include "xenia/base/main_android.h" #include "xenia/base/string_util.h" @@ -128,11 +128,7 @@ uint32_t current_thread_system_id() { } void MaybeYield() { -#if XE_PLATFORM_ANDROID sched_yield(); -#else - pthread_yield(); -#endif __sync_synchronize(); }