qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r995140 - /qpid/trunk/qpid/cpp/src/qpid/sys/RdmaIOPlugin.cpp
Date Wed, 08 Sep 2010 16:49:34 GMT
Author: astitcher
Date: Wed Sep  8 16:49:33 2010
New Revision: 995140

URL: http://svn.apache.org/viewvc?rev=995140&view=rev
Log:
Reordered members of RdmaIOHandler to ensure correct destruction order

Modified:
    qpid/trunk/qpid/cpp/src/qpid/sys/RdmaIOPlugin.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/sys/RdmaIOPlugin.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/sys/RdmaIOPlugin.cpp?rev=995140&r1=995139&r2=995140&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/sys/RdmaIOPlugin.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/sys/RdmaIOPlugin.cpp Wed Sep  8 16:49:33 2010
@@ -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 OutputContr
     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 OutputContr
 };
 
 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)
 {
 }
 



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message