/// <summary> /// 表示当前处于读锁状态, 但存在等待中的写锁请求 /// </summary> public PendingWriteState(AsyncReaderWriterLock owner) : base(owner) { Contract.Assert(owner.m_pendingWriterList.Count != 0); Contract.Assert(owner.m_readingList.Count != 0); }
protected AbstractState(AsyncReaderWriterLock owner) { Owner = owner; }