示例#1
0
 public SharedReader(IWaitStrategy waitHandleReader, IWaitOnceStrategy waitHandleWriter, Synchronizer syncRoot, Func <TRead> reader)
 {
     _waitHandleReader = waitHandleReader;
     _waitHandleWriter = waitHandleWriter;
     _reader           = reader;
     _syncRoot         = syncRoot;
 }
示例#2
0
            //private          TWrite            _buffer;

            #endregion

            public SharedWriter(IWaitStrategy waitHandleReader, IWaitOnceStrategy waitHandleWriter, Synchronizer syncRoot, Action <TWrite> write)
            {
                _waitHandleReader = waitHandleReader;
                _waitHandleWriter = waitHandleWriter;
                _syncRoot         = syncRoot;
                _write            = write;
            }