示例#1
0
 internal void SetClosed()
 {
     lock (this)
     {
         // set by DW to signal that we should not release new DWPT after close
         if (!closed)
         {
             this.closed = true;
             perThreadPool.DeactivateUnreleasedStates();
         }
     }
 }
 internal void SetClosed()
 {
     UninterruptableMonitor.Enter(this);
     try
     {
         // set by DW to signal that we should not release new DWPT after close
         if (!closed)
         {
             this.closed = true;
             perThreadPool.DeactivateUnreleasedStates();
         }
     }
     finally
     {
         UninterruptableMonitor.Exit(this);
     }
 }