From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58598 invoked by alias); 22 Nov 2016 15:25:47 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 57428 invoked by uid 9078); 22 Nov 2016 15:25:43 -0000 Date: Tue, 22 Nov 2016 15:25:00 -0000 Message-ID: <20161122152543.57426.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Declare non-standard pthread_yield() X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: e655d3d34be6922158bf7c8256c1d3ad8544957d X-Git-Newrev: 0bb58fbd3ecede36ec775849109b506362300b24 X-SW-Source: 2016-q4/txt/msg00021.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=0bb58fbd3ecede36ec775849109b506362300b24 commit 0bb58fbd3ecede36ec775849109b506362300b24 Author: Sebastian Huber Date: Tue Nov 22 07:59:16 2016 +0100 Declare non-standard pthread_yield() The non-standard pthread_yield() function is available at least on Cygwin, FreeBSD and glibc. Signed-off-by: Sebastian Huber Diff: --- newlib/libc/include/pthread.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h index abba3d9..46f5420 100644 --- a/newlib/libc/include/pthread.h +++ b/newlib/libc/include/pthread.h @@ -278,6 +278,10 @@ int _EXFUN(pthread_getcpuclockid, int _EXFUN(pthread_setconcurrency, (int new_level)); int _EXFUN(pthread_getconcurrency, (void)); +#if __BSD_VISIBLE || __GNU_VISIBLE +void _EXFUN(pthread_yield, (void)); +#endif + /* Dynamic Package Initialization */ /* This is used to statically initialize a pthread_once_t. Example: