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