Struct UpgradeableReadGuard
Represents a disposable upgradeable read guard over a ReaderWriterLockSlim.
Implements
Namespace: Singulink.Threading
Assembly: Singulink.Threading.dll
Syntax
public struct UpgradeableReadGuard : IDisposable
Properties
| Name | Description |
|---|---|
| IsUpgraded | Gets a value indicating whether the guard has been upgraded to a write guard. |
Methods
| Name | Description |
|---|---|
| Dispose() | Releases the upgradeable read guard (or write guard if it was upgraded). |
| UpgradeToWriteGuard() | Upgrades this guard to a write guard. |