summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-05-18 09:40:58 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-05-18 09:40:58 +0000
commit3666098248b43282bda1153dae2f4c1e4af38d09 (patch)
tree9c69a323f89cdd81b231dc630b0eaf134225da7a /thread.h
parent9e6b2b00f0190751b970ece3db7033405cb08ca5 (diff)
parentd2719217c9b7910115cef7ea0c16d68e6b286cf7 (diff)
downloadperl-3666098248b43282bda1153dae2f4c1e4af38d09.tar.gz
[asperl] integrate mainline changes (untested)
p4raw-id: //depot/asperl@1010
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/thread.h b/thread.h
index f1f4d8eeef..9b7524586c 100644
--- a/thread.h
+++ b/thread.h
@@ -36,10 +36,12 @@
#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