Ferrous API Reference

All Types / Ferrous.Concurrency

struct WriteGuard<T> [MustUse]

public ref struct WriteGuard<T>

Stack-allocated exclusive write guard for RwLock<T>.

Properties

public readonly ref T Value

Gets a mutable managed reference to the protected value.

Methods

public void Dispose()

Releases the exclusive write lock.