diff options
author | Alan Conway <aconway@apache.org> | 2009-04-29 20:29:53 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-04-29 20:29:53 +0000 |
commit | bf70c3a435b5198e48cd83f692796bd47e253df1 (patch) | |
tree | 1f67175547e8f847220f9f01ca9993e0b45ff592 /cpp/src/qpid/cluster/OutputInterceptor.h | |
parent | 0ea393c49936c4647547199859961c4203a25cb3 (diff) | |
download | qpid-python-bf70c3a435b5198e48cd83f692796bd47e253df1.tar.gz |
Improved & simplified cluster output algorithm.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@769914 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/OutputInterceptor.h')
-rw-r--r-- | cpp/src/qpid/cluster/OutputInterceptor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/qpid/cluster/OutputInterceptor.h b/cpp/src/qpid/cluster/OutputInterceptor.h index 61e246bb89..ea603dbe06 100644 --- a/cpp/src/qpid/cluster/OutputInterceptor.h +++ b/cpp/src/qpid/cluster/OutputInterceptor.h @@ -22,9 +22,9 @@ * */ -#include "WriteEstimate.h" #include "NoOpConnectionOutputHandler.h" #include "qpid/sys/ConnectionOutputHandler.h" +#include "qpid/sys/Mutex.h" #include "qpid/broker/ConnectionFactory.h" #include <boost/function.hpp> @@ -60,14 +60,14 @@ class OutputInterceptor : public sys::ConnectionOutputHandler { private: typedef sys::Mutex::ScopedLock Locker; - void sendDoOutput(); + void sendDoOutput(size_t); mutable sys::Mutex lock; bool closing; sys::ConnectionOutputHandler* next; size_t sent; - size_t lastDoOutput; - WriteEstimate writeEstimate; + size_t estimate; + size_t minimum; bool moreOutput; bool doingOutput; static NoOpConnectionOutputHandler discardHandler; |