qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r954497 - /qpid/trunk/qpid/cpp/src/qpid/client/RdmaConnector.cpp
Date Mon, 14 Jun 2010 14:50:36 GMT
Author: astitcher
Date: Mon Jun 14 14:50:36 2010
New Revision: 954497

URL: http://svn.apache.org/viewvc?rev=954497&view=rev
Log:
Ensure that we can't shutdown in the middle of writing a buffer

Modified:
    qpid/trunk/qpid/cpp/src/qpid/client/RdmaConnector.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/client/RdmaConnector.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/client/RdmaConnector.cpp?rev=954497&r1=954496&r2=954497&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/client/RdmaConnector.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/client/RdmaConnector.cpp Mon Jun 14 14:50:36 2010
@@ -320,6 +320,7 @@ void RdmaConnector::send(AMQFrame& frame
 // This is NOT only called in response to previously calling notifyPendingWrite
 void RdmaConnector::writebuff(Rdma::AsynchIO&) {
     // It's possible to be disconnected and be writable
+    Mutex::ScopedLock l(pollingLock);
     if (!polling)
         return;
 



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


Mime
View raw message