virtual public void Resume() { ThrowIfEnded(); lock (BreadLock) { Paused = false; Bblock.Set(); } BtestNewPathing(); }
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; } } }