From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.6 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id ABA321F85E for ; Fri, 13 Jul 2018 09:46:00 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=EDfX6sNhu32MsvpA I3zQi2rF2Gj1Aj3ymNL/hDKyE0xD4Yh4Gp5gWdNa6XY0NAveLaSU3TeJivA4Bd+c qERUvp4miTJf+qX1PSQZOXNAnB0VfBCUWbOFidZi4+Mvjhw8sSDhJ1HBnuMh/yIH UsjB4QgGJmDVcqe+bUUEFYoILUk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=nufPY+vb8we7sdO4Kc+Jeo n5jzc=; b=bHchtcyoV3xJdil1l6/kUTJIYvhnlVeIqHockZNpiHxLp6pDdhM/GU JqO7uGfkva2J2lmtjg20/QUeNaBEg9gDNl4o9gnoZVrMYROqb7X9+126zweyo5td V4G9I8yyQIlE5oj6YKwKec9yqiw6V5g8imwJZnUUfO9AIKBA7Cq+M= Received: (qmail 105178 invoked by alias); 13 Jul 2018 09:45:57 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 105073 invoked by uid 89); 13 Jul 2018 09:45:42 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mx1.redhat.com Subject: Re: [PATCH v8 1/8] nptl: Add C11 threads thrd_* functions To: Adhemerval Zanella , libc-alpha@sourceware.org References: <1517591084-11347-1-git-send-email-adhemerval.zanella@linaro.org> <1517591084-11347-2-git-send-email-adhemerval.zanella@linaro.org> From: Florian Weimer Message-ID: <6bd3db7f-6fb5-8951-edc1-507fa93cb31a@redhat.com> Date: Fri, 13 Jul 2018 11:45:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1517591084-11347-2-git-send-email-adhemerval.zanella@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 02/02/2018 06:04 PM, Adhemerval Zanella wrote: > 2. thrd_sleep uses nanosleep internal direct syscall to avoid clobbering > errno, to handle expected standard return codes, and to avoid making > the call a POSIX cancellation entrypoint. Isn't this inconsistent with the conditional variable wait and thread join functions, which are still cancellation points? On the other hand, a sleep function which is not a cancellation point may be useful. Thanks, Florian