diff options
Diffstat (limited to 'cs/src/Ice/ThreadPool.cs')
-rwxr-xr-x | cs/src/Ice/ThreadPool.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cs/src/Ice/ThreadPool.cs b/cs/src/Ice/ThreadPool.cs index f6b98f735a3..d7a50f33351 100755 --- a/cs/src/Ice/ThreadPool.cs +++ b/cs/src/Ice/ThreadPool.cs @@ -921,6 +921,11 @@ namespace IceInternal public void Run() { + if(thread_Pool.instance_.initializationData().threadHook != null) + { + thread_Pool.instance_.initializationData().threadHook.start(); + } + BasicStream stream = new BasicStream(thread_Pool.instance_); bool promote; @@ -955,6 +960,11 @@ namespace IceInternal System.Threading.Monitor.Pulse(thread_Pool); } } + + if(thread_Pool.instance_.initializationData().threadHook != null) + { + thread_Pool.instance_.initializationData().threadHook.stop(); + } #if TRACE_THREAD thread_Pool.trace("run() terminated"); |