From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91401 invoked by alias); 22 Nov 2016 06:59:34 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 88779 invoked by uid 89); 22 Nov 2016 06:59:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=UD:pthread.h, pthreadh, pthread.h, HX-Envelope-From:sk:sebasti X-HELO: dedi548.your-server.de Received: from dedi548.your-server.de (HELO dedi548.your-server.de) (85.10.215.148) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 22 Nov 2016 06:59:22 +0000 Received: from [88.198.220.130] (helo=sslproxy01.your-server.de) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1c9532-00052f-4a for newlib@sourceware.org; Tue, 22 Nov 2016 07:59:20 +0100 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy01.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c9531-0004I5-Mg for newlib@sourceware.org; Tue, 22 Nov 2016 07:59:19 +0100 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 665C82A180D for ; Tue, 22 Nov 2016 07:59:20 +0100 (CET) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id uz7n_Ln45D1i; Tue, 22 Nov 2016 07:59:19 +0100 (CET) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id E7A602A01AE; Tue, 22 Nov 2016 07:59:19 +0100 (CET) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Xv8u57tj0-PA; Tue, 22 Nov 2016 07:59:19 +0100 (CET) Received: from huber-linux.eb.localhost (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTP id C62A42A1809; Tue, 22 Nov 2016 07:59:19 +0100 (CET) From: Sebastian Huber To: newlib@sourceware.org Cc: Sebastian Huber Subject: [PATCH 1/2] Declare non-standard pthread_yield() Date: Tue, 22 Nov 2016 06:59:00 -0000 Message-Id: <1479797957-15162-1-git-send-email-sebastian.huber@embedded-brains.de> X-IsSubscribed: yes X-SW-Source: 2016/txt/msg01119.txt.bz2 The non-standard pthread_yield() function is available at least on Cygwin, FreeBSD and glibc. Signed-off-by: Sebastian Huber --- 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: -- 1.8.4.5