/// <inheritdoc /> public void Dispose() { foreach (var handle in _handles) { _locks.Release(handle); } }
/// <inheritdoc /> public void Dispose() { // Release method should be robust in terms of calling it multiple times _locks.Release(this); }