Ferrous API Reference

All Types / Ferrous.Concurrency

struct ReadGuard<T> [MustUse]

public ref struct ReadGuard<T>

Stack-allocated shared read guard for RwLock<T>.

Properties

public readonly ref readonly T Value

Gets a read-only managed reference to the protected value.

Methods

public void Dispose()

Releases the shared read lock.