diff options
author | Marc Laukien <marc@zeroc.com> | 2003-10-01 15:21:21 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2003-10-01 15:21:21 +0000 |
commit | e1cb43f62b269c157dfd544c5c22a3fa5f95f266 (patch) | |
tree | 3a85a883e20076a604f429020a6feca38c2b7c8b /cpp/src/Ice/Instance.cpp | |
parent | Removed DB, cleaned up configuration (diff) | |
download | ice-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.cpp | 7 |
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(); } |