summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-06-01 15:31:11 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-06-01 15:31:11 +0000
commitdba48e6aa9feac17c9ee2c02adb90a01c9ebae8e (patch)
tree1f890a3a36238d21c10bb7adba0dc979c2905689 /cpp/src/Ice/ThreadPool.cpp
parentAdded a bunch of missing dependencies on Glacier2 to a few IceGrid (diff)
downloadice-dba48e6aa9feac17c9ee2c02adb90a01c9ebae8e.tar.bz2
ice-dba48e6aa9feac17c9ee2c02adb90a01c9ebae8e.tar.xz
ice-dba48e6aa9feac17c9ee2c02adb90a01c9ebae8e.zip
Added thread start/stop hooks
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r--cpp/src/Ice/ThreadPool.cpp10
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.
}