From patchwork Tue Jan 14 18:52:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 1223008 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-108671-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=bs6+WTeb; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 47y0Gl6kLDz9s29 for ; Wed, 15 Jan 2020 06:03:27 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; q=dns; s= default; b=i+243GsL6V98bPIMMBEFWzeIFoyHVgv0i8EpkchAVjppJD+EJsyfk Fb6nKv0nTUdBTV4dGRdINzqETcMvxsOgWHUPwuL6Z1cdLtZmiAVsXEkV6MiXA/rp UwYrnsZReLaGjBUnmWEV8e8sqlajm9ocNDnaW5HPOxYN6p4tJIP2Vw= 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:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; s=default; bh=ZAA2dkaSDtNlw0Liio2TlPSbHBI=; b=bs6+WTebJksqFVbvT9HKbYTJpO6J 4XclQmGoncL0uz9LNrbXcJOYutRnzEO04sngrKTJ9UB0aJLDH7CwbeSTbKKr8pFI G3cbKR3HVaTeMsxg9TFQDT7N3c3lIIA5snTejPjJWAYmj+ZI/Iucig9G6HArDB8X 9vzza6ml8Osygm4= Received: (qmail 121527 invoked by alias); 14 Jan 2020 19:03:13 -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 Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 121495 invoked by uid 89); 14 Jan 2020 19:03:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [PATCH 08/10] C11 threads: make thrd_join more portable Date: Tue, 14 Jan 2020 19:52:53 +0100 Message-Id: <20200114185255.25813-10-samuel.thibault@ens-lyon.org> In-Reply-To: <20200114185255.25813-1-samuel.thibault@ens-lyon.org> References: <20200114185255.25813-1-samuel.thibault@ens-lyon.org> MIME-Version: 1.0 by making a __pthread_join call instead of an equivalent __pthread_clockjoin_ex call. Reviewed-by: Adhemerval Zanella --- nptl/thrd_join.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nptl/thrd_join.c b/nptl/thrd_join.c index 783e36f02b..0c482959d5 100644 --- a/nptl/thrd_join.c +++ b/nptl/thrd_join.c @@ -22,7 +22,7 @@ int thrd_join (thrd_t thr, int *res) { void *pthread_res; - int err_code = __pthread_clockjoin_ex (thr, &pthread_res, 0, NULL, true); + int err_code = __pthread_join (thr, &pthread_res); if (res) *res = (int) (uintptr_t) pthread_res;