This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e4f9c1
)
amigaos4: neither sched_yield nor pthread_yield
author
Andy Broad
<andy@broad.ology.org.uk>
Fri, 21 Aug 2015 21:07:54 +0000
(17:07 -0400)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Sat, 5 Sep 2015 15:12:46 +0000
(11:12 -0400)
Emulate using sleep(0).
dist/threads/threads.xs
patch
|
blob
|
blame
|
history
diff --git
a/dist/threads/threads.xs
b/dist/threads/threads.xs
index
f5395cf
..
3b38367
100644
(file)
--- a/
dist/threads/threads.xs
+++ b/
dist/threads/threads.xs
@@
-38,6
+38,10
@@
#ifdef USE_ITHREADS
+#if defined(__amigaos4__)
+# undef YIELD
+# define YIELD sleep(0)
+#endif
#ifdef WIN32
# include <windows.h>
/* Supposed to be in Winbase.h */