From 6f837e5cc03ed4dd6f75d0357a1b252618cadf2b Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Fri, 4 Feb 2000 23:41:25 +0000 Subject: [PATCH] Added #ifdef HAVE_SCHED_YIELD git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/threadpsx.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/threadpsx.cpp b/src/unix/threadpsx.cpp index b30021a122..c9915fa3b4 100644 --- a/src/unix/threadpsx.cpp +++ b/src/unix/threadpsx.cpp @@ -835,7 +835,9 @@ bool wxThread::IsMain() void wxThread::Yield() { +#ifdef HAVE_SCHED_YIELD sched_yield(); +#endif } void wxThread::Sleep(unsigned long milliseconds) -- 2.45.2