From 8c1c5ec3309a59c9f905b30c116c4ffb258543cf Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 9 Sep 2009 19:01:09 +0000 Subject: 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 --- cpp/src/qpid/broker/QueueRegistry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp') 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 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); } -- cgit v1.2.1