summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/broker/QueueListeners.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-06-12 20:42:16 +0000
committerAlan Conway <aconway@apache.org>2009-06-12 20:42:16 +0000
commitd07d0c79b428574f9382324f62fb1c09d2275bee (patch)
tree847d3e8656f4388b42add06606350afff095fd80 /qpid/cpp/src/qpid/broker/QueueListeners.h
parent801eb7583c32281c7de12be2f0d2d1818f8a23b2 (diff)
downloadqpid-python-d07d0c79b428574f9382324f62fb1c09d2275bee.tar.gz
Revert bad optimization: unpredictable ordering of set caused cluster failures.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@784267 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/broker/QueueListeners.h')
-rw-r--r--qpid/cpp/src/qpid/broker/QueueListeners.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/broker/QueueListeners.h b/qpid/cpp/src/qpid/broker/QueueListeners.h
index 509f1be6f3..53ed6a17e4 100644
--- a/qpid/cpp/src/qpid/broker/QueueListeners.h
+++ b/qpid/cpp/src/qpid/broker/QueueListeners.h
@@ -22,7 +22,7 @@
*
*/
#include "Consumer.h"
-#include <set>
+#include <list>
namespace qpid {
namespace broker {
@@ -40,7 +40,7 @@ namespace broker {
class QueueListeners
{
public:
- typedef std::set<Consumer::shared_ptr> Listeners;
+ typedef std::list<Consumer::shared_ptr> Listeners;
class NotificationSet
{
@@ -58,6 +58,10 @@ class QueueListeners
private:
Listeners consumers;
Listeners browsers;
+
+ void add(Listeners&, Consumer::shared_ptr);
+ void remove(Listeners&, Consumer::shared_ptr);
+
};
}} // namespace qpid::broker