summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/QueueRegistry.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-10-11 13:29:37 +0000
committerGordon Sim <gsim@apache.org>2007-10-11 13:29:37 +0000
commit685aad458c485cd260df694f58d2f7641ce94e32 (patch)
tree57b4963ac7105f711ced6e4627232e0f62fda3be /cpp/src/qpid/broker/QueueRegistry.h
parenta23f05ddb503e587473519fa3f6491a93798a535 (diff)
downloadqpid-python-685aad458c485cd260df694f58d2f7641ce94e32.tar.gz
Exclusive no longer implies auto-delete on queue.declare.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@583821 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/QueueRegistry.h')
-rw-r--r--cpp/src/qpid/broker/QueueRegistry.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/QueueRegistry.h b/cpp/src/qpid/broker/QueueRegistry.h
index 1a766b810a..f73f467945 100644
--- a/cpp/src/qpid/broker/QueueRegistry.h
+++ b/cpp/src/qpid/broker/QueueRegistry.h
@@ -62,11 +62,14 @@ class QueueRegistry{
*
*/
void destroy(const string& name);
- template <class Test> void destroyIf(const string& name, Test test)
+ template <class Test> bool destroyIf(const string& name, Test test)
{
qpid::sys::RWlock::ScopedWlock locker(lock);
if (test()) {
queues.erase(name);
+ return true;
+ } else {
+ return false;
}
}