From b9bff3d0cf8396b7c81c9dc3912f5bfc9899191d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 17 Jan 2023 23:27:22 +0100 Subject: Linux: Use sched_yield() instead of deprecated pthread_yield() --- LibOVRKernel/Src/Kernel/OVR_ThreadsPthread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'LibOVRKernel/Src/Kernel') diff --git a/LibOVRKernel/Src/Kernel/OVR_ThreadsPthread.cpp b/LibOVRKernel/Src/Kernel/OVR_ThreadsPthread.cpp index 0d8851b..af5d80b 100644 --- a/LibOVRKernel/Src/Kernel/OVR_ThreadsPthread.cpp +++ b/LibOVRKernel/Src/Kernel/OVR_ThreadsPthread.cpp @@ -911,10 +911,10 @@ void Thread::YieldCurrentThread() { #if defined(OVR_OS_MAC) || defined(OVR_OS_BSD) pthread_yield_np(); - #elif defined(OVR_OS_ANDROID) - sched_yield(); + #elif defined(OVR_OS_ANDROID) + sched_yield(); #else // Linux - pthread_yield(); + sched_yield(); #endif } -- cgit v1.2.3