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>
This commit is contained in:
Sebastian Huber 2016-11-22 07:59:16 +01:00 committed by Corinna Vinschen
parent e655d3d34b
commit 0bb58fbd3e
1 changed files with 4 additions and 0 deletions

View File

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