You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2009/03/24 19:07:30 UTC

svn commit: r757928 - in /activemq/activemq-cpp/trunk/src/main/decaf/util: AbstractCollection.h StlMap.h StlQueue.h

Author: tabish
Date: Tue Mar 24 18:07:27 2009
New Revision: 757928

URL: http://svn.apache.org/viewvc?rev=757928&view=rev
Log:
Make the private mutex objects mutable so they can be used in const functions

Modified:
    activemq/activemq-cpp/trunk/src/main/decaf/util/AbstractCollection.h
    activemq/activemq-cpp/trunk/src/main/decaf/util/StlMap.h
    activemq/activemq-cpp/trunk/src/main/decaf/util/StlQueue.h

Modified: activemq/activemq-cpp/trunk/src/main/decaf/util/AbstractCollection.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/util/AbstractCollection.h?rev=757928&r1=757927&r2=757928&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/util/AbstractCollection.h (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/util/AbstractCollection.h Tue Mar 24 18:07:27 2009
@@ -58,7 +58,7 @@
     class DECAF_API AbstractCollection : public decaf::util::Collection<E> {
     protected:
 
-        util::concurrent::Mutex mutex;
+        mutable util::concurrent::Mutex mutex;
 
     public:
 

Modified: activemq/activemq-cpp/trunk/src/main/decaf/util/StlMap.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/util/StlMap.h?rev=757928&r1=757927&r2=757928&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/util/StlMap.h (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/util/StlMap.h Tue Mar 24 18:07:27 2009
@@ -38,7 +38,7 @@
     private:
 
         std::map<K,V,COMPARATOR> valueMap;
-        concurrent::Mutex mutex;
+        mutable concurrent::Mutex mutex;
 
     public:
 

Modified: activemq/activemq-cpp/trunk/src/main/decaf/util/StlQueue.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/decaf/util/StlQueue.h?rev=757928&r1=757927&r2=757928&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/decaf/util/StlQueue.h (original)
+++ activemq/activemq-cpp/trunk/src/main/decaf/util/StlQueue.h Tue Mar 24 18:07:27 2009
@@ -256,7 +256,7 @@
         std::list<T> queue;
 
         // Object used for sync
-        util::concurrent::Mutex mutex;
+        mutable util::concurrent::Mutex mutex;
 
     };