Beispiel #1
0
 public static bool UpgradeToWriterIf(IReaderWriterLock lok, RwLockGuardCondition condition)
 {
     if (condition())
       {
     lok.UpgradeToWriterLock();
     if (condition())
     {
       return true;
     }
       }
       return false;
 }
 public virtual bool UpgradeToWriterIf(RwLockGuardCondition condition)
 {
     return RWLock.UpgradeToWriterIf(this, condition);
 }
Beispiel #3
0
 public static bool UpgradeToWriterIf(ReaderWriterLock lok, RwLockGuardCondition condition)
 {
     return UpgradeToWriterIf(new DotNetReaderWriterLock(lok), condition);
 }