Example #1
0
 public ReadAccessScope(Locked <T> target)
 {
     this.target = target;
     Monitor.Enter(target.padlock);
 }
Example #2
0
 public WriteAccessScope(Locked <T> target)
 {
     this.target = target;
     this.target.padlock.EnterWriteLock();
 }