From dba48e6aa9feac17c9ee2c02adb90a01c9ebae8e Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Thu, 1 Jun 2006 15:31:11 +0000 Subject: Added thread start/stop hooks --- cpp/src/Ice/ThreadPool.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpp/src/Ice/ThreadPool.cpp') 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. } -- cgit v1.2.3