Пример #1
0
 public void finishIOScope(ref ThreadPoolCurrent current)
 {
     if(_finishWithIO)
     {
         // This must be called with the handler locked. 
         current.finishMessage(true);
     }
 }
Пример #2
0
 public void finishIOScope(ref ThreadPoolCurrent current)
 {
     if (_finishWithIO)
     {
         // This must be called with the handler locked.
         current.finishMessage(true);
     }
 }
Пример #3
0
 public void finishIOScope(ref ThreadPoolCurrent current)
 {
     if (_finishWithIO)
     {
         lock (_mutex)
         {
             current.finishMessage(true);
         }
     }
 }
Пример #4
0
 public void finishIOScope(ref ThreadPoolCurrent current)
 {
     if(_finishWithIO)
     {
         lock(_mutex)
         {
             current.finishMessage(true);
         }
     }
 }
Пример #5
0
 public void destroy(ref ThreadPoolCurrent current)
 {
     if (_finish)
     {
         //
         // A ThreadPoolMessage instance must be created outside the synchronization
         // of the event handler. We need to lock the event handler here to call
         // finishMessage.
         //
         lock (_mutex)
         {
             current.finishMessage(false);
             Debug.Assert(!current.completedSynchronously);
         }
     }
 }
Пример #6
0
 public void destroy(ref ThreadPoolCurrent current)
 {
     if(_finish)
     {
         //
         // A ThreadPoolMessage instance must be created outside the synchronization
         // of the event handler. We need to lock the event handler here to call
         // finishMessage.
         //
         lock(_mutex)
         {
             current.finishMessage(false);
             Debug.Assert(!current.completedSynchronously);
         }
     }
 }