public void Unlock(LockHandle handle) { lock (this) { if (openHandles != null) { var index = openHandles.IndexOf(handle); if (index >= 0) { openHandles.RemoveAt(index); } } handle.Release(); } }
public void Unlock(LockHandle handle) { lock (this) { handle.Release(); } }
public void Unlock(LockHandle handle) { lock (this) { if (openHandles != null) { var index = openHandles.IndexOf(handle); if (index >= 0) openHandles.RemoveAt(index); } handle.Release(); } }