diff options
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r-- | cpp/src/Ice/ThreadPool.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp index 4d291161fbd..0bb280f8037 100644 --- a/cpp/src/Ice/ThreadPool.cpp +++ b/cpp/src/Ice/ThreadPool.cpp @@ -851,6 +851,11 @@ IceInternal::ThreadPool::EventHandlerThread::EventHandlerThread(const ThreadPool void IceInternal::ThreadPool::EventHandlerThread::run() { + if(_pool->_instance->initializationData().threadHook) + { + _pool->_instance->initializationData().threadHook->start(); + } + bool promote; try @@ -890,5 +895,10 @@ IceInternal::ThreadPool::EventHandlerThread::run() } } + if(_pool->_instance->initializationData().threadHook) + { + _pool->_instance->initializationData().threadHook->stop(); + } + _pool = 0; // Break cyclic dependency. } |