qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r813079 - /qpid/trunk/qpid/cpp/src/qpid/broker/QueueRegistry.h
Date Wed, 09 Sep 2009 19:01:09 GMT
Author: aconway
Date: Wed Sep  9 19:01:09 2009
New Revision: 813079

URL: http://svn.apache.org/viewvc?rev=813079&view=rev
Log:
Replace write lock with read lock in QueueRegistry::eachQueue.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/QueueRegistry.h

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/QueueRegistry.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/QueueRegistry.h?rev=813079&r1=813078&r2=813079&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/QueueRegistry.h (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/QueueRegistry.h Wed Sep  9 19:01:09 2009
@@ -111,7 +111,7 @@
 
     /** Call f for each queue in the registry. */
     template <class F> void eachQueue(F f) const {
-        qpid::sys::RWlock::ScopedWlock l(lock);
+        qpid::sys::RWlock::ScopedRlock l(lock);
         for (QueueMap::const_iterator i = queues.begin(); i != queues.end(); ++i)
             f(i->second);
     }



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message