Esempio n. 1
0
 public void finishIOScope(ref ThreadPoolCurrent current)
 {
     if(_finishWithIO)
     {
         // This must be called with the handler locked. 
         current.finishMessage(true);
     }
 }
Esempio n. 2
0
 public void finishIOScope(ref ThreadPoolCurrent current)
 {
     if (_finishWithIO)
     {
         // This must be called with the handler locked.
         current.finishMessage(true);
     }
 }
Esempio n. 3
0
 public void finishIOScope(ref ThreadPoolCurrent current)
 {
     if (_finishWithIO)
     {
         lock (_mutex)
         {
             current.finishMessage(true);
         }
     }
 }
Esempio n. 4
0
 public void finishIOScope(ref ThreadPoolCurrent current)
 {
     if(_finishWithIO)
     {
         lock(_mutex)
         {
             current.finishMessage(true);
         }
     }
 }
Esempio n. 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);
         }
     }
 }
Esempio n. 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);
         }
     }
 }