This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 1/2] Declare non-standard pthread_yield()
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Cc: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Date: Tue, 22 Nov 2016 07:59:16 +0100
- Subject: [PATCH 1/2] Declare non-standard pthread_yield()
- Authentication-results: sourceware.org; auth=none
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>
---
newlib/libc/include/pthread.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h
index abba3d9..46f5420 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:
--
1.8.4.5