Beispiel #1
0
 /// <summary>
 /// Exits the write lock
 /// </summary>
 public void Dispose()
 {
     if (IsValid)
     {
         m_lock.ExitWriteLock();
     }
 }
Beispiel #2
0
 /// <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);
     }
 }