From 55527152af356fda6037f836c978c2b3a2e2f045 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Tue, 8 Dec 2009 14:10:38 -0800 Subject: - bug 3533: add async version of Connection/Communicator flushBatchRequests operation - Slice file cleanup in C# tests - Updating C++ dependencies --- cpp/src/Ice/ConnectionFactory.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'cpp/src/Ice/ConnectionFactory.cpp') diff --git a/cpp/src/Ice/ConnectionFactory.cpp b/cpp/src/Ice/ConnectionFactory.cpp index 25b91c92805..601c0634850 100644 --- a/cpp/src/Ice/ConnectionFactory.cpp +++ b/cpp/src/Ice/ConnectionFactory.cpp @@ -410,7 +410,7 @@ IceInternal::OutgoingConnectionFactory::removeAdapter(const ObjectAdapterPtr& ad } void -IceInternal::OutgoingConnectionFactory::flushBatchRequests() +IceInternal::OutgoingConnectionFactory::flushAsyncBatchRequests(const CommunicatorBatchOutgoingAsyncPtr& outAsync) { list c; @@ -419,7 +419,10 @@ IceInternal::OutgoingConnectionFactory::flushBatchRequests() for(multimap::const_iterator p = _connections.begin(); p != _connections.end(); ++p) { - c.push_back(p->second); + if(p->second->isActiveOrHolding()) + { + c.push_back(p->second); + } } } @@ -427,7 +430,7 @@ IceInternal::OutgoingConnectionFactory::flushBatchRequests() { try { - (*p)->flushBatchRequests(); + outAsync->flushConnection(*p); } catch(const LocalException&) { @@ -1287,7 +1290,7 @@ IceInternal::IncomingConnectionFactory::connections() const } void -IceInternal::IncomingConnectionFactory::flushBatchRequests() +IceInternal::IncomingConnectionFactory::flushAsyncBatchRequests(const CommunicatorBatchOutgoingAsyncPtr& outAsync) { list c = connections(); // connections() is synchronized, so no need to synchronize here. @@ -1295,7 +1298,7 @@ IceInternal::IncomingConnectionFactory::flushBatchRequests() { try { - (*p)->flushBatchRequests(); + outAsync->flushConnection(*p); } catch(const LocalException&) { -- cgit v1.2.3