Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 29929 invoked from network); 3 Dec 2009 00:14:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Dec 2009 00:14:45 -0000 Received: (qmail 65023 invoked by uid 500); 3 Dec 2009 00:14:45 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 64964 invoked by uid 500); 3 Dec 2009 00:14:45 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 64952 invoked by uid 99); 3 Dec 2009 00:14:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2009 00:14:45 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2009 00:14:43 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8C8A8238888F; Thu, 3 Dec 2009 00:14:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r886345 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/windows/ConditionHandle.h Date: Thu, 03 Dec 2009 00:14:22 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091203001423.8C8A8238888F@eris.apache.org> Author: tabish Date: Thu Dec 3 00:14:21 2009 New Revision: 886345 URL: http://svn.apache.org/viewvc?rev=886345&view=rev Log: Make the int properties volatile for thread safety. Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/windows/ConditionHandle.h Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/windows/ConditionHandle.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/windows/ConditionHandle.h?rev=886345&r1=886344&r2=886345&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/windows/ConditionHandle.h (original) +++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/util/concurrent/windows/ConditionHandle.h Thu Dec 3 00:14:21 2009 @@ -41,9 +41,9 @@ // The actual condition object HANDLE semaphore; CRITICAL_SECTION criticalSection; - unsigned int numWaiting; - unsigned int numWake; - unsigned int generation; + volatile unsigned int numWaiting; + volatile unsigned int numWake; + volatile unsigned int generation; // The mutex object associated with this condition. MutexHandle* mutex;