diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-03-10 15:50:20 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-03-10 15:50:20 +0100 |
commit | e3965dcfae46026f3e6ef2e1ee68aeb818413a43 (patch) | |
tree | 7a20165b26d74fd698df216408fe9bc3234b6ae6 /csharp/src/Ice/ThreadPool.cs | |
parent | Aligned C# throwUOE with Java (diff) | |
download | ice-e3965dcfae46026f3e6ef2e1ee68aeb818413a43.tar.bz2 ice-e3965dcfae46026f3e6ef2e1ee68aeb818413a43.tar.xz ice-e3965dcfae46026f3e6ef2e1ee68aeb818413a43.zip |
Fixed ICE-7662 - Use System.Action & System.Func classes
Diffstat (limited to 'csharp/src/Ice/ThreadPool.cs')
-rw-r--r-- | csharp/src/Ice/ThreadPool.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/csharp/src/Ice/ThreadPool.cs b/csharp/src/Ice/ThreadPool.cs index 94e0ebba602..226a0f9a04a 100644 --- a/csharp/src/Ice/ThreadPool.cs +++ b/csharp/src/Ice/ThreadPool.cs @@ -741,7 +741,7 @@ namespace IceInternal } private Instance _instance; - private Ice.Dispatcher _dispatcher; + private System.Action<System.Action, Ice.Connection> _dispatcher; private bool _destroyed; private readonly string _prefix; private readonly string _threadPrefix; @@ -816,11 +816,11 @@ namespace IceInternal // SynchronizationContext.SetSynchronizationContext(new ThreadPoolSynchronizationContext(_threadPool)); - if(_threadPool._instance.initializationData().threadHook != null) + if(_threadPool._instance.initializationData().threadStart != null) { try { - _threadPool._instance.initializationData().threadHook.start(); + _threadPool._instance.initializationData().threadStart(); } catch(System.Exception ex) { @@ -845,11 +845,11 @@ namespace IceInternal _observer.detach(); } - if(_threadPool._instance.initializationData().threadHook != null) + if(_threadPool._instance.initializationData().threadStop != null) { try { - _threadPool._instance.initializationData().threadHook.stop(); + _threadPool._instance.initializationData().threadStop(); } catch(System.Exception ex) { |