diff options
author | Andrew Stitcher <astitcher@apache.org> | 2010-09-08 16:49:33 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2010-09-08 16:49:33 +0000 |
commit | 693c2a2f4fed5545b14250b3a841f1b687809c57 (patch) | |
tree | 448b5ef2732bc7e511c3f8938209eee37245d9bd /cpp/src | |
parent | 26f29811c8103c1d00b38a9a0d3754165e2770fa (diff) | |
download | qpid-python-693c2a2f4fed5545b14250b3a841f1b687809c57.tar.gz |
Reordered members of RdmaIOHandler to ensure correct destruction order
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@995140 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/sys/RdmaIOPlugin.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/qpid/sys/RdmaIOPlugin.cpp b/cpp/src/qpid/sys/RdmaIOPlugin.cpp index 09c9770a5b..40967ca7c4 100644 --- a/cpp/src/qpid/sys/RdmaIOPlugin.cpp +++ b/cpp/src/qpid/sys/RdmaIOPlugin.cpp @@ -44,9 +44,7 @@ namespace qpid { namespace sys { class RdmaIOHandler : public OutputControl { - Rdma::Connection::intrusive_ptr connection; std::string identifier; - Rdma::AsynchIO* aio; ConnectionCodec::Factory* factory; ConnectionCodec* codec; bool readError; @@ -54,6 +52,9 @@ class RdmaIOHandler : public OutputControl { sys::Mutex pollingLock; bool polling; + Rdma::AsynchIO* aio; + Rdma::Connection::intrusive_ptr connection; + void write(const framing::ProtocolInitiation&); public: @@ -82,12 +83,12 @@ class RdmaIOHandler : public OutputControl { }; RdmaIOHandler::RdmaIOHandler(Rdma::Connection::intrusive_ptr c, qpid::sys::ConnectionCodec::Factory* f) : - connection(c), identifier(c->getPeerName()), factory(f), codec(0), readError(false), - polling(false) + polling(false), + connection(c) { } |