private void ReadBlocks() { BlockInfo block; while ((block = FileStreamer.GetNextBlock(GetNextInClearQueue())) != null) { if (manualStop) { return; } lock (_poolWithBlocks) { _poolWithBlocks.Enqueue(block); Monitor.Pulse(_poolWithBlocks); } } }
public void Close() { FileStreamer.Close(); }
public BlockPool(int size, string path) { fileName = path; FileStreamer.Init(size, path); }