public ref T ValueGets a managed reference to the protected value.
Exceptions
ObjectDisposedException- Thrown if this guard has already been disposed or is uninitialized.
All Types / Ferrous.Concurrency
public ref struct MutexGuard<T>
A stack-allocated RAII guard providing exclusive access to the value owned by a Mutex<T>. Because this is a ref struct, it cannot escape to the heap or be held across await.
Tpublic ref T ValueGets a managed reference to the protected value.
ObjectDisposedExceptionpublic void Dispose()Releases the underlying Mutex<T> lock. Safe to call more than once.