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