示例#1
0
文件: Program.cs 项目: Miltt/Console
 public Reader(Writer writer)
 {
     this.writer = writer;
     obj = new object();            
     readers = 0;
 }
示例#2
0
文件: Program.cs 项目: Miltt/Console
        public Sync(int numReaders)
        {
            this.numReaders = numReaders;

            writer = new Writer();
            reader = new Reader(writer);
        }