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:
Corinna Vinschen 2020-08-29 21:21:21 +02:00
parent 8b85b3c3ad
commit 5999c433bb
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -411,6 +411,7 @@ sched_yield ()
SwitchToThread ();
return 0;
}
EXPORT_ALIAS (sched_yield, pthread_yield)
int
sched_getcpu ()