diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-06-01 15:31:11 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-06-01 15:31:11 +0000 |
commit | dba48e6aa9feac17c9ee2c02adb90a01c9ebae8e (patch) | |
tree | 1f890a3a36238d21c10bb7adba0dc979c2905689 /java/src/IceInternal/ThreadPool.java | |
parent | Added a bunch of missing dependencies on Glacier2 to a few IceGrid (diff) | |
download | ice-dba48e6aa9feac17c9ee2c02adb90a01c9ebae8e.tar.bz2 ice-dba48e6aa9feac17c9ee2c02adb90a01c9ebae8e.tar.xz ice-dba48e6aa9feac17c9ee2c02adb90a01c9ebae8e.zip |
Added thread start/stop hooks
Diffstat (limited to 'java/src/IceInternal/ThreadPool.java')
-rw-r--r-- | java/src/IceInternal/ThreadPool.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/src/IceInternal/ThreadPool.java b/java/src/IceInternal/ThreadPool.java index 5538bc9af22..020c54ff3e6 100644 --- a/java/src/IceInternal/ThreadPool.java +++ b/java/src/IceInternal/ThreadPool.java @@ -1228,6 +1228,11 @@ public final class ThreadPool public void run() { + if(_instance.initializationData().threadHook != null) + { + _instance.initializationData().threadHook.start(); + } + BasicStream stream = new BasicStream(_instance); boolean promote; @@ -1275,6 +1280,11 @@ public final class ThreadPool { trace("run() terminated"); } + + if(_instance.initializationData().threadHook != null) + { + _instance.initializationData().threadHook.stop(); + } } } |