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