示例#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();
 }