Table of Contents

Struct AsyncReaderWriterLockUpgradedReadToken

Namespace
LfrlAnvil.Async
Assembly
LfrlAnvil.Core.dll

Represents an acquired read lock upgraded to the write level from an AsyncReaderWriterLock instance.

public readonly struct AsyncReaderWriterLockUpgradedReadToken : IDisposable
Implements
Inherited Members
Extension Methods

Properties

Lock

Associated AsyncReaderWriterLock instance.

public AsyncReaderWriterLock? Lock { get; }

Property Value

AsyncReaderWriterLock

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Exceptions

InvalidOperationException

When this upgraded read lock has already been downgraded.

GetReadToken()

Creates an upgradeable read lock token associated with this upgraded read lock.

[Pure]
public AsyncReaderWriterLockUpgradeableReadToken GetReadToken()

Returns

AsyncReaderWriterLockUpgradeableReadToken

New AsyncReaderWriterLockUpgradeableReadToken instance.