summaryrefslogtreecommitdiff
path: root/cpp/src
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
commit8c1c5ec3309a59c9f905b30c116c4ffb258543cf (patch)
tree92a333d76b5715da06af4e3d8d328c268eb3f074 /cpp/src
parentf8830aa4cc47c6cbeefecde841803c535916e09e (diff)
downloadqpid-python-8c1c5ec3309a59c9f905b30c116c4ffb258543cf.tar.gz
Replace write lock with read lock in QueueRegistry::eachQueue.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@813079 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/QueueRegistry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/QueueRegistry.h b/cpp/src/qpid/broker/QueueRegistry.h
index c134f399c8..72a91dff24 100644
--- a/cpp/src/qpid/broker/QueueRegistry.h
+++ b/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);
}