コード例 #1
0
 public RFC2988BasedRTOCalculator(TimeSpan defaultRTO, TimeSpan minRTO, int timerGranularity, bool ignoreEP)
 {
     if (ignoreEP) {
         _lock = null;
         _states = null;
     } else {
         _lock = new ReaderWriterLockWrapper ();
         _states = new Dictionary<IPAddress,State> ();
     }
     _timerGranularity = timerGranularity;
     _minRTO = (int)minRTO.TotalMilliseconds;
     _defaultRTO = defaultRTO;
 }
コード例 #2
0
 public WriteLockCookie(ReaderWriterLockWrapper owner)
 {
     _owner = owner;
     _owner._lock.EnterWriteLock ();
 }
コード例 #3
0
 public UpgradeableReadLockCookie(ReaderWriterLockWrapper owner)
 {
     _owner = owner;
     _owner._lock.EnterUpgradeableReadLock ();
 }