Ejemplo n.º 1
0
 public RWLock()
 {
     _lock = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion);
     _lockRead = new ReaderLock(_lock);
     _lockWrite = new WriterLock(_lock);
 }
Ejemplo n.º 2
0
 public RWLock()
 {
     _lock      = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion);
     _lockRead  = new ReaderLock(_lock);
     _lockWrite = new WriterLock(_lock);
 }