From patchwork Fri Jul 3 13:09:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Huber X-Patchwork-Id: 491051 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 64181140778 for ; Fri, 3 Jul 2015 23:09:41 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=WGQQxIpw; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; q=dns; s=default; b=J1o3jjOWEi0e nmadmRL/m4dj/FM4tm6pogYo/DAVAKvMJg6cB4JNYqXKX5uw8CDtSGhLUS2tr59+ IdnQClKH46UIJnH5tdDuIVw0CrySapTaFlFTHsvGrW8sQXdRdz6S/s8JFzEOlrdD Rx7rVPQ9N0oGkBE/ygX1MQMzGgrTLdk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; s=default; bh=N6AB04z579ZbOYOe+3 xRIrPFWHQ=; b=WGQQxIpwXI3ZW/5D0cT2oaltVjApMHHZkeQY58TCs3mitB7P9s uHzZXcdchsa/IdF8p1wY0mdIA38iagZKMcdElpVUzhD0rjkDf5UqAddjDfK5sc5I Q2IskPgfFaKFZAZmBVtzAcpgzKw6+KGOwmvTN7+3dAoyeo2wjdpuvyXD0= Received: (qmail 112169 invoked by alias); 3 Jul 2015 13:09:34 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 112159 invoked by uid 89); 3 Jul 2015 13:09:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.9 required=5.0 tests=AWL, BAYES_50, KAM_LAZY_DOMAIN_SECURITY, RDNS_DYNAMIC autolearn=no version=3.3.2 X-HELO: mail.embedded-brains.de Received: from host-82-135-62-35.customer.m-online.net (HELO mail.embedded-brains.de) (82.135.62.35) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 03 Jul 2015 13:09:32 +0000 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 26C322A1991; Fri, 3 Jul 2015 15:09:53 +0200 (CEST) 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 o67oi8tWmCOB; Fri, 3 Jul 2015 15:09:52 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 6EBA92A198D; Fri, 3 Jul 2015 15:09:52 +0200 (CEST) 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 JTDFsuXx1aQu; Fri, 3 Jul 2015 15:09:52 +0200 (CEST) Received: from huber-linux.eb.localhost (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTP id 1B36B2A15AD; Fri, 3 Jul 2015 15:09:52 +0200 (CEST) From: Sebastian Huber To: gcc-patches@gcc.gnu.org Cc: jakub@redhat.com, Sebastian Huber Subject: [PATCH] libgomp: Add comment to clarify last_team usage Date: Fri, 3 Jul 2015 15:09:27 +0200 Message-Id: <1435928967-4909-1-git-send-email-sebastian.huber@embedded-brains.de> X-IsSubscribed: yes libgomp/ChangeLog 2015-07-03 Sebastian Huber * libgomp.h (gomp_thread_pool): Comment last_team field. --- libgomp/libgomp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h index 5272f01..5ed0f78 100644 --- a/libgomp/libgomp.h +++ b/libgomp/libgomp.h @@ -458,6 +458,9 @@ struct gomp_thread_pool struct gomp_thread **threads; unsigned threads_size; unsigned threads_used; + /* The last team is used for non-nested teams to delay their destruction to + make sure all the threads in the team move on to the pool's barrier before + the team's barrier is destroyed. */ struct gomp_team *last_team; /* Number of threads running in this contention group. */ unsigned long threads_busy;