public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Declare non-standard pthread_yield()
@ 2016-11-22  6:59 Sebastian Huber
  2016-11-22  6:59 ` [PATCH 2/2] Provide <memory.h> Sebastian Huber
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Huber @ 2016-11-22  6:59 UTC (permalink / raw)
  To: newlib; +Cc: Sebastian Huber

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-22 16:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-22  6:59 [PATCH 1/2] Declare non-standard pthread_yield() Sebastian Huber
2016-11-22  6:59 ` [PATCH 2/2] Provide <memory.h> Sebastian Huber
2016-11-22 15:49   ` Eric Blake
2016-11-22 16:00     ` Corinna Vinschen
2016-11-22 15:59   ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).