From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29170 invoked by alias); 19 Feb 2004 23:07:41 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 29137 invoked from network); 19 Feb 2004 23:07:40 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sources.redhat.com with SMTP; 19 Feb 2004 23:07:40 -0000 Received: from hermes.suse.de (Hermes.suse.de [195.135.221.8]) by Cantor.suse.de (Postfix) with ESMTP id 65C6E209556 for ; Fri, 20 Feb 2004 00:07:05 +0100 (CET) Received: by sykes.suse.de (Postfix, from userid 597) id 244FA1685952D; Fri, 20 Feb 2004 00:07:04 +0100 (CET) To: libc-hacker@sources.redhat.com Subject: Fix pthread_barrier_wait From: Andreas Schwab X-Yow: Sorry, wrong ZIP CODE!! Date: Thu, 19 Feb 2004 23:07:00 -0000 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-02/txt/msg00025.txt.bz2 This fixes a syntax error in the last change to pthread_barrier_wait. Andreas. 2004-02-19 Andreas Schwab * sysdeps/pthread/pthread_barrier_wait.c (pthread_barrier_wait): Fix last change. --- nptl/sysdeps/pthread/pthread_barrier_wait.c.~1.2.~ 2004-02-19 10:54:44.000000000 +0100 +++ nptl/sysdeps/pthread/pthread_barrier_wait.c 2004-02-19 23:57:20.467915474 +0100 @@ -73,7 +73,7 @@ pthread_barrier_wait (barrier) unsigned int init_count = ibarrier->init_count; /* If this was the last woken thread, unlock. */ - if (atomic_exchange_and_add (ibarrier->left, 1) == init_count - 1) + if (atomic_exchange_and_add (&ibarrier->left, 1) == init_count - 1) /* We are done. */ lll_unlock (ibarrier->lock); -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."