From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 0AA1F385783B; Sun, 30 Aug 2020 12:30:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0AA1F385783B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: make pthread_yield available for internal usage X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 8b85b3c3adb85cd1e854de0e35db7c682b945702 X-Git-Newrev: 5999c433bbc16c00385a2157dab9c416f8000f6b Message-Id: <20200830123005.0AA1F385783B@sourceware.org> Date: Sun, 30 Aug 2020 12:30:05 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2020 12:30:05 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=5999c433bbc16c00385a2157dab9c416f8000f6b commit 5999c433bbc16c00385a2157dab9c416f8000f6b Author: Corinna Vinschen Date: Sat Aug 29 21:21:21 2020 +0200 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 Diff: --- winsup/cygwin/common.din | 2 +- winsup/cygwin/sched.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/common.din b/winsup/cygwin/common.din index a7b4aa2b0..d781922a3 100644 --- a/winsup/cygwin/common.din +++ b/winsup/cygwin/common.din @@ -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 diff --git a/winsup/cygwin/sched.cc b/winsup/cygwin/sched.cc index fdb8ba738..84df7b9e6 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 ()