diff options
author | Alan Conway <aconway@apache.org> | 2007-11-07 16:06:31 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-11-07 16:06:31 +0000 |
commit | d19657d82321b2b5e2cac386c49aa99f82b976fb (patch) | |
tree | eceb3790181d8b058e207a0847c35024856325b0 /cpp/src/qpid/client/Dispatcher.cpp | |
parent | 5bec8a4a978290a8dd710870a04bd09e9f493c26 (diff) | |
download | qpid-python-d19657d82321b2b5e2cac386c49aa99f82b976fb.tar.gz |
Added LocalQueue subscriptions. LocalQueue::pop() provides a "pull"
alternative to the MessageListener::received() "push" API.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@592803 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/Dispatcher.cpp')
-rw-r--r-- | cpp/src/qpid/client/Dispatcher.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/client/Dispatcher.cpp b/cpp/src/qpid/client/Dispatcher.cpp index 37f3941022..65756f6404 100644 --- a/cpp/src/qpid/client/Dispatcher.cpp +++ b/cpp/src/qpid/client/Dispatcher.cpp @@ -62,14 +62,14 @@ void Dispatcher::start() void Dispatcher::run() { - sys::BlockingQueue<FrameSet::shared_ptr>& q = queue.empty() ? + Demux::QueuePtr q = queue.empty() ? session.execution().getDemux().getDefault() : session.execution().getDemux().get(queue); startRunning(); stopped = false; while (!isStopped()) { - FrameSet::shared_ptr content = q.pop(); + FrameSet::shared_ptr content = q->pop(); if (content->isA<MessageTransferBody>()) { Message msg(*content); Subscriber::shared_ptr listener = find(msg.getDestination()); |