]> git.saurik.com Git - wxWidgets.git/commitdiff
Added #ifdef HAVE_SCHED_YIELD
authorStefan Neis <Stefan.Neis@t-online.de>
Fri, 4 Feb 2000 23:41:25 +0000 (23:41 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Fri, 4 Feb 2000 23:41:25 +0000 (23:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/threadpsx.cpp

index b30021a122799480fbd6f9a00ca2dc77d2662cee..c9915fa3b44d2e716c9b9344a39faff28b0d58b6 100644 (file)
@@ -835,7 +835,9 @@ bool wxThread::IsMain()
 
 void wxThread::Yield()
 {
+#ifdef HAVE_SCHED_YIELD
     sched_yield();
+#endif
 }
 
 void wxThread::Sleep(unsigned long milliseconds)