diff options
author | Andrew Stitcher <astitcher@apache.org> | 2009-06-03 13:52:44 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2009-06-03 13:52:44 +0000 |
commit | d754c14caadec49f7107c2c9233c4abccf32daa6 (patch) | |
tree | 5045107485248e56b410b6012b012c39cd5073d7 /cpp/src/qpid/client/RdmaConnector.cpp | |
parent | f5e02db0308f72c71acf7d13c2d10c5d35325e0f (diff) | |
download | qpid-python-d754c14caadec49f7107c2c9233c4abccf32daa6.tar.gz |
Revert "QPID-1879 Removed some code obsoleted by this change"
This reverts commit 60d66cae76b2bea90f076875e35cb69049fb2d3a.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@781376 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/RdmaConnector.cpp')
-rw-r--r-- | cpp/src/qpid/client/RdmaConnector.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/RdmaConnector.cpp b/cpp/src/qpid/client/RdmaConnector.cpp index 15d6e5364d..f6bedf63f5 100644 --- a/cpp/src/qpid/client/RdmaConnector.cpp +++ b/cpp/src/qpid/client/RdmaConnector.cpp @@ -68,6 +68,7 @@ using boost::str; sys::Mutex pollingLock; bool polling; + bool joined; sys::ShutdownHandler* shutdownHandler; framing::InputHandler* input; @@ -147,6 +148,7 @@ RdmaConnector::RdmaConnector(Poller::shared_ptr p, version(ver), initiated(false), polling(false), + joined(true), shutdownHandler(0), aio(0), poller(p), @@ -162,6 +164,7 @@ RdmaConnector::~RdmaConnector() { void RdmaConnector::connect(const std::string& host, int port){ Mutex::ScopedLock l(pollingLock); assert(!polling); + assert(joined); // This stuff needs to abstracted out of here to a platform specific file ::addrinfo *res; @@ -185,6 +188,7 @@ void RdmaConnector::connect(const std::string& host, int port){ c->start(poller); polling = true; + joined = false; } // The following only gets run when connected |