Esempio n. 1
0
 virtual public void Resume()
 {
     ThrowIfEnded();
     lock (BreadLock)
     {
         Paused = false;
         Bblock.Set();
     }
     BtestNewPathing();
 }
Esempio n. 2
0
 virtual public void End()
 {
     ThrowIfEnded();
     lock (BreadLock)
     {
         lock (BwriteLock)
         {
             Ended = true;
             Bstream.Dispose();
             Bblock.Set();
             Bwait.Set();
             Bblock.Dispose();
             Bwait.Dispose();
             PipedTo = null;
             Paused  = false;
         }
     }
 }