diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2009-02-24 22:38:08 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2009-02-24 22:38:08 +0000 |
| commit | 06f943c08fd1f4df7e2de9e2ec13856836492a4e (patch) | |
| tree | 295561ed447ea79545de3df8d05c3c4d0daef56f /cpp/src/qpid/broker/Connection.h | |
| parent | 74fad234873bfb83831ee221ca38a45e8eb94cc8 (diff) | |
| download | qpid-python-06f943c08fd1f4df7e2de9e2ec13856836492a4e.tar.gz | |
Changed the producer rate limit timer callback
so that it generates a callback serialised with
the connection
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@747587 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Connection.h')
| -rw-r--r-- | cpp/src/qpid/broker/Connection.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/Connection.h b/cpp/src/qpid/broker/Connection.h index b1e1cda973..b659fe6468 100644 --- a/cpp/src/qpid/broker/Connection.h +++ b/cpp/src/qpid/broker/Connection.h @@ -25,6 +25,7 @@ #include <memory> #include <sstream> #include <vector> +#include <queue> #include <boost/ptr_container/ptr_map.hpp> @@ -47,6 +48,7 @@ #include "qpid/sys/ConnectionOutputHandler.h" #include "qpid/sys/Socket.h" #include "qpid/sys/TimeoutHandler.h" +#include "qpid/sys/Mutex.h" #include <boost/ptr_container/ptr_map.hpp> #include <boost/bind.hpp> @@ -119,7 +121,8 @@ class Connection : public sys::ConnectionInputHandler, const bool isLink; bool mgmtClosing; const std::string mgmtId; - boost::function0<void> ioCallback; + sys::Mutex ioCallbackLock; + std::queue<boost::function0<void> > ioCallbacks; qmf::org::apache::qpid::broker::Connection* mgmtObject; LinkRegistry& links; management::ManagementAgent* agent; |
