summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-22 07:59:16 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-11-22 14:21:33 +0100
commit0bb58fbd3ecede36ec775849109b506362300b24 (patch)
tree29777afd660200aff79b8685625f4fe775b32b7f
parente655d3d34be6922158bf7c8256c1d3ad8544957d (diff)
downloadcygnal-0bb58fbd3ecede36ec775849109b506362300b24.tar.gz
cygnal-0bb58fbd3ecede36ec775849109b506362300b24.tar.bz2
cygnal-0bb58fbd3ecede36ec775849109b506362300b24.zip
Declare non-standard pthread_yield()
The non-standard pthread_yield() function is available at least on Cygwin, FreeBSD and glibc. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
-rw-r--r--newlib/libc/include/pthread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h
index abba3d988..46f54206f 100644
--- a/newlib/libc/include/pthread.h
+++ b/newlib/libc/include/pthread.h
@@ -278,6 +278,10 @@ int _EXFUN(pthread_getcpuclockid,
int _EXFUN(pthread_setconcurrency, (int new_level));
int _EXFUN(pthread_getconcurrency, (void));
+#if __BSD_VISIBLE || __GNU_VISIBLE
+void _EXFUN(pthread_yield, (void));
+#endif
+
/* Dynamic Package Initialization */
/* This is used to statically initialize a pthread_once_t. Example: