summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Instance.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2003-10-01 15:21:21 +0000
committerMarc Laukien <marc@zeroc.com>2003-10-01 15:21:21 +0000
commite1cb43f62b269c157dfd544c5c22a3fa5f95f266 (patch)
tree3a85a883e20076a604f429020a6feca38c2b7c8b /cpp/src/Ice/Instance.cpp
parentRemoved DB, cleaned up configuration (diff)
downloadice-e1cb43f62b269c157dfd544c5c22a3fa5f95f266.tar.bz2
ice-e1cb43f62b269c157dfd544c5c22a3fa5f95f266.tar.xz
ice-e1cb43f62b269c157dfd544c5c22a3fa5f95f266.zip
bi-dir now uses client thread pool
Diffstat (limited to 'cpp/src/Ice/Instance.cpp')
-rw-r--r--cpp/src/Ice/Instance.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/Ice/Instance.cpp b/cpp/src/Ice/Instance.cpp
index 770e7aef0cf..306af207e6d 100644
--- a/cpp/src/Ice/Instance.cpp
+++ b/cpp/src/Ice/Instance.cpp
@@ -365,12 +365,19 @@ IceInternal::Instance::flushBatchRequests()
{
OutgoingConnectionFactoryPtr connectionFactory;
ObjectAdapterFactoryPtr adapterFactory;
+
{
IceUtil::RecMutex::Lock sync(*this);
+ if(_destroyed)
+ {
+ throw CommunicatorDestroyedException(__FILE__, __LINE__);
+ }
+
connectionFactory = _outgoingConnectionFactory;
adapterFactory = _objectAdapterFactory;
}
+
connectionFactory->flushBatchRequests();
adapterFactory->flushBatchRequests();
}