Esempio n. 1
0
 internal void OnClientHandlerThreadExited(object sender, ClientHandlerThread.ExitedEventArgs e)
 {
     lock (sync_)
     {
         ClientHandlerThread t = null;
         if (clientThreads_.TryGetValue(e.ClientHandlerThread.Id, out t))
         {
             clientThreads_.Remove(t.Id);
             t.Dispose();
             t = null;
         }
     }
 }
Esempio n. 2
0
 internal void OnClientHandlerThreadExited(object sender, ClientHandlerThread.ExitedEventArgs e)
 {
     lock (GdaxPrototyping.Common.Core.Threading.TThreadingHelpers.MainLockable)
     {
         ClientHandlerThread t = null;
         if (clientThreads_.TryGetValue(e.ClientHandlerThread.Id, out t))
         {
             clientThreads_.Remove(t.Id);
             t.Dispose();
             t = null;
         }
     }
 }