Cygwin: make pthread_yield available for internal usage
In preparation of importing FreeBSDs stdthreads functions, change the way pthread_yield is exported, so that the symbol can be used internally as well. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
8b85b3c3ad
commit
5999c433bb
|
@ -1159,7 +1159,7 @@ pthread_suspend SIGFE
|
|||
pthread_testcancel SIGFE
|
||||
pthread_timedjoin_np SIGFE
|
||||
pthread_tryjoin_np SIGFE
|
||||
pthread_yield = sched_yield SIGFE
|
||||
pthread_yield SIGFE
|
||||
ptsname SIGFE
|
||||
ptsname_r SIGFE
|
||||
putc SIGFE
|
||||
|
|
|
@ -411,6 +411,7 @@ sched_yield ()
|
|||
SwitchToThread ();
|
||||
return 0;
|
||||
}
|
||||
EXPORT_ALIAS (sched_yield, pthread_yield)
|
||||
|
||||
int
|
||||
sched_getcpu ()
|
||||
|
|
Loading…
Reference in New Issue