summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/BrokerFixture.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-09-11 13:26:10 +0000
committerAlan Conway <aconway@apache.org>2008-09-11 13:26:10 +0000
commit473d83e62f0e00501012eaa09cff96346beeec8f (patch)
treede7ff0b0c7f7a46585884484bfd500bdaa089e62 /qpid/cpp/src/tests/BrokerFixture.h
parentc2b15bd68f4e6fe060b29cccd93d249c2314bb17 (diff)
downloadqpid-python-473d83e62f0e00501012eaa09cff96346beeec8f.tar.gz
Moved PollableCondition, PollableQueue and to sys. Fixed cluster shutdown issues.
sys/PollableCondition: is a generic mechansim to poll for non-IO events in the Poller. sys/PollableQueue: is a thread-safe queue template that can be dispatched from the Poller when there are items on the queue. It uses PollableCondition. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@694243 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/BrokerFixture.h')
-rw-r--r--qpid/cpp/src/tests/BrokerFixture.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/BrokerFixture.h b/qpid/cpp/src/tests/BrokerFixture.h
index 09cca066ef..4e10f82809 100644
--- a/qpid/cpp/src/tests/BrokerFixture.h
+++ b/qpid/cpp/src/tests/BrokerFixture.h
@@ -92,7 +92,8 @@ struct ClientT {
SessionType session;
qpid::client::SubscriptionManager subs;
qpid::client::LocalQueue lq;
- ClientT(uint16_t port) : connection(port), session(connection.newSession()), subs(session) {}
+ ClientT(uint16_t port, const std::string& name=std::string())
+ : connection(port), session(connection.newSession(name)), subs(session) {}
~ClientT() { connection.close(); }
};