public Lock NewLock(LockingMode mode, AccessType accessType) { lock (this) { var @lock = new Lock(this, mode, accessType); Acquire(@lock); @lock.OnAcquired(); return(@lock); } }
public Lock NewLock(LockingMode mode, AccessType accessType) { lock (this) { var @lock = new Lock(this, mode, accessType); Acquire(@lock); @lock.OnAcquired(); return @lock; } }