コード例 #1
0
ファイル: ReadWriteLock.cs プロジェクト: plade/BuildXL
 /// <summary>
 /// Exits the write lock
 /// </summary>
 public void Dispose()
 {
     if (IsValid)
     {
         m_lock.ExitWriteLock();
     }
 }
コード例 #2
0
ファイル: ReadWriteLock.cs プロジェクト: rustedwizard/BuildXL
 /// <summary>
 /// Exits the write lock
 /// </summary>
 public void Dispose()
 {
     if (IsValid)
     {
         // If WriteLock is configured to exclude reads, ensure that we are unsetting the flag.
         // This check is not applicable to write locks that were upgraded from allow reads to exclude reads.
         m_lock.ExitWriteLock(ensureExcludeReadsLockReleased: !m_allowReads);
     }
 }