diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2020-08-29 21:21:21 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-08-30 14:27:43 +0200 |
commit | 5999c433bbc16c00385a2157dab9c416f8000f6b (patch) | |
tree | b84f8da09e4a8fca9ecec8a7dcfbcbfd96143896 /winsup/cygwin/sched.cc | |
parent | 8b85b3c3adb85cd1e854de0e35db7c682b945702 (diff) | |
download | newlib-5999c433bbc16c00385a2157dab9c416f8000f6b.zip newlib-5999c433bbc16c00385a2157dab9c416f8000f6b.tar.gz newlib-5999c433bbc16c00385a2157dab9c416f8000f6b.tar.bz2 |
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>
Diffstat (limited to 'winsup/cygwin/sched.cc')
-rw-r--r-- | winsup/cygwin/sched.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/sched.cc b/winsup/cygwin/sched.cc index fdb8ba7..84df7b9 100644 --- a/winsup/cygwin/sched.cc +++ b/winsup/cygwin/sched.cc @@ -411,6 +411,7 @@ sched_yield () SwitchToThread (); return 0; } +EXPORT_ALIAS (sched_yield, pthread_yield) int sched_getcpu () |