This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[PATCH for 5.004_64] Configure patch Config_64-01
[perl5.git] / thread.h
index a252285..6141cf3 100644 (file)
--- a/thread.h
+++ b/thread.h
 #endif
 
 #ifndef YIELD
-#  ifdef HAS_PTHREAD_YIELD
-#    define YIELD pthread_yield()
-#  else
+#  ifdef HAS_SCHED_YIELD
 #    define YIELD sched_yield()
+#  else
+#    ifdef HAS_PTHREAD_YIELD
+#      define YIELD pthread_yield()
+#    endif
 #  endif
 #endif