/// <summary> /// 减少写入模式的递归计数,并在生成的计数为 0(零)时退出写入模式。 /// </summary> public void ReleaseWriteLock() { this.rwLock.ReleaseWriterLock(); WriteLock.ClearCurrent(); }
internal void Clear() { this.rwLock = null; current = null; }