4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-08 10:09:32 +08:00

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 committed by Ken Brown
parent a13a7e64f6
commit 2052848eef
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 ()