summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-05-14 22:24:26 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-05-14 22:24:26 +0000
commit6ee623d521a149edc6574c512fa951a192cd086a (patch)
tree3d769839caf246d24053d0f49b4f48aed590e031 /thread.h
parent20408e3ccf502b6ce4033d8203710405ec9ef8f6 (diff)
downloadperl-6ee623d521a149edc6574c512fa951a192cd086a.tar.gz
[win32] integrate mainline
p4raw-id: //depot/win32/perl@973
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 a2522852f5..6141cf3f14 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