summaryrefslogtreecommitdiff
path: root/qpid
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-09-09 19:01:09 +0000
committerAlan Conway <aconway@apache.org>2009-09-09 19:01:09 +0000
commitbc567e4b0b0ae24ce22525b6bb74a522cc4151cd (patch)
treef0248d968550df4c0b2fa9efb64d97fb330e0301 /qpid
parente5392ee804c657625c2adecb9a90da06bf746a3e (diff)
downloadqpid-python-bc567e4b0b0ae24ce22525b6bb74a522cc4151cd.tar.gz
Replace write lock with read lock in QueueRegistry::eachQueue.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@813079 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid')
-rw-r--r--qpid/cpp/src/qpid/broker/QueueRegistry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/QueueRegistry.h b/qpid/cpp/src/qpid/broker/QueueRegistry.h
index c134f399c8..72a91dff24 100644
--- a/qpid/cpp/src/qpid/broker/QueueRegistry.h
+++ b/qpid/cpp/src/qpid/broker/QueueRegistry.h
@@ -111,7 +111,7 @@ class QueueRegistry {
/** 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);
}