예제 #1
0
        private void ReadBlocks()
        {
            BlockInfo block;

            while ((block = FileStreamer.GetNextBlock(GetNextInClearQueue())) != null)
            {
                if (manualStop)
                {
                    return;
                }

                lock (_poolWithBlocks)
                {
                    _poolWithBlocks.Enqueue(block);
                    Monitor.Pulse(_poolWithBlocks);
                }
            }
        }
예제 #2
0
 public void Close()
 {
     FileStreamer.Close();
 }
예제 #3
0
 public BlockPool(int size, string path)
 {
     fileName = path;
     FileStreamer.Init(size, path);
 }