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:
parent
e655d3d34b
commit
0bb58fbd3e
@ -278,6 +278,10 @@ int _EXFUN(pthread_getcpuclockid,
|
|||||||
int _EXFUN(pthread_setconcurrency, (int new_level));
|
int _EXFUN(pthread_setconcurrency, (int new_level));
|
||||||
int _EXFUN(pthread_getconcurrency, (void));
|
int _EXFUN(pthread_getconcurrency, (void));
|
||||||
|
|
||||||
|
#if __BSD_VISIBLE || __GNU_VISIBLE
|
||||||
|
void _EXFUN(pthread_yield, (void));
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Dynamic Package Initialization */
|
/* Dynamic Package Initialization */
|
||||||
|
|
||||||
/* This is used to statically initialize a pthread_once_t. Example:
|
/* This is used to statically initialize a pthread_once_t. Example:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user