Example #1
0
 public ResourceLock TryAcquireRead()
 {
     if (_lock.TryEnterReadLock(0))
     {
         return(ResourceLock.Reader(this));
     }
     return(null);
 }
Example #2
0
 public ResourceLock AcquireRead()
 {
     UnsafeEnterRead();
     return(ResourceLock.Reader(this));
 }