diff options
author | Gordon Sim <gsim@apache.org> | 2007-11-08 15:55:41 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-11-08 15:55:41 +0000 |
commit | 36af925c0645e87661df4ba8448244b69492a0c1 (patch) | |
tree | eab5bf51dd1b68593583353be9374b02bd9277a3 /cpp/src/qpid/broker/Queue.h | |
parent | a95e226914600dd00434addda8661c8286da3a0d (diff) | |
download | qpid-python-36af925c0645e87661df4ba8448244b69492a0c1.tar.gz |
Exception handling for dispatch functor
Don't dequeue no-ack messages unless they have been acquired
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@593212 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Queue.h')
-rw-r--r-- | cpp/src/qpid/broker/Queue.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cpp/src/qpid/broker/Queue.h b/cpp/src/qpid/broker/Queue.h index e554c1011a..20eb7c0800 100644 --- a/cpp/src/qpid/broker/Queue.h +++ b/cpp/src/qpid/broker/Queue.h @@ -71,15 +71,7 @@ namespace qpid { DispatchFunctor(Queue& q, DispatchCompletion* s = 0) : queue(q), sync(s) {} DispatchFunctor(Queue& q, Consumer::ptr c, DispatchCompletion* s = 0) : queue(q), consumer(c), sync(s) {} - void operator()() - { - if (consumer && !consumer->preAcquires()) { - queue.serviceBrowser(consumer); - }else{ - queue.dispatch(); - } - if (sync) sync->completed(); - } + void operator()(); }; const string name; |