activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
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 GMT
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;



Mime
View raw message