This is the mail archive of the newlib-cvs@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] Declare non-standard pthread_yield()


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0bb58fbd3ecede36ec775849109b506362300b24

commit 0bb58fbd3ecede36ec775849109b506362300b24
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Tue Nov 22 07:59:16 2016 +0100

    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>

Diff:
---
 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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]