summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/ExchangeRegistry.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2006-11-08 17:07:44 +0000
committerAlan Conway <aconway@apache.org>2006-11-08 17:07:44 +0000
commit5be658a8817b8092a7b53b116f622412a5d0aef6 (patch)
treebbee363911f47bad6abe245629cacba0ebf3b9be /cpp/src/qpid/broker/ExchangeRegistry.cpp
parent85fef3d1e669b240deae82cdd353620667a85e08 (diff)
downloadqpid-python-5be658a8817b8092a7b53b116f622412a5d0aef6.tar.gz
More reorg to separate APR/posix code, work in progress.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@472545 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/ExchangeRegistry.cpp')
-rw-r--r--cpp/src/qpid/broker/ExchangeRegistry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/qpid/broker/ExchangeRegistry.cpp b/cpp/src/qpid/broker/ExchangeRegistry.cpp
index 6f6c759aa2..1c3a4af026 100644
--- a/cpp/src/qpid/broker/ExchangeRegistry.cpp
+++ b/cpp/src/qpid/broker/ExchangeRegistry.cpp
@@ -26,7 +26,7 @@ using namespace qpid::sys;
using std::pair;
pair<Exchange::shared_ptr, bool> ExchangeRegistry::declare(const string& name, const string& type) throw(UnknownExchangeTypeException){
- Locker locker(lock);
+ Mutex::ScopedLock locker(lock);
ExchangeMap::iterator i = exchanges.find(name);
if (i == exchanges.end()) {
Exchange::shared_ptr exchange;
@@ -50,12 +50,12 @@ pair<Exchange::shared_ptr, bool> ExchangeRegistry::declare(const string& name, c
}
void ExchangeRegistry::destroy(const string& name){
- Locker locker(lock);
+ Mutex::ScopedLock locker(lock);
exchanges.erase(name);
}
Exchange::shared_ptr ExchangeRegistry::get(const string& name){
- Locker locker(lock);
+ Mutex::ScopedLock locker(lock);
return exchanges[name];
}