summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/broker/QueueRegistry.h
diff options
context:
space:
mode:
authorCarl C. Trieloff <cctrieloff@apache.org>2007-10-31 00:43:11 +0000
committerCarl C. Trieloff <cctrieloff@apache.org>2007-10-31 00:43:11 +0000
commit7dad525a5c71fe346a275646945793d36adf4c9a (patch)
tree80380e4d0286d93dca96c4b01c7704f091e07aaa /qpid/cpp/src/qpid/broker/QueueRegistry.h
parent9fd2a66990309c75ffcc461fc010f0cf32505b71 (diff)
downloadqpid-python-7dad525a5c71fe346a275646945793d36adf4c9a.tar.gz
- QPID-667
- for Ted Ross - built and tested. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@590523 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/broker/QueueRegistry.h')
-rw-r--r--qpid/cpp/src/qpid/broker/QueueRegistry.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/broker/QueueRegistry.h b/qpid/cpp/src/qpid/broker/QueueRegistry.h
index 07669bb3a1..03b4778f7a 100644
--- a/qpid/cpp/src/qpid/broker/QueueRegistry.h
+++ b/qpid/cpp/src/qpid/broker/QueueRegistry.h
@@ -62,12 +62,13 @@ class QueueRegistry{
* subsequent calls to find or declare with the same name.
*
*/
- void destroy(const string& name);
+ void destroyLH (const string& name);
+ void destroy (const string& name);
template <class Test> bool destroyIf(const string& name, Test test)
{
qpid::sys::RWlock::ScopedWlock locker(lock);
if (test()) {
- queues.erase(name);
+ destroyLH (name);
return true;
} else {
return false;