Method EnterWriteGuard
EnterWriteGuard()
Enters the lock in write mode and returns a guard that releases the lock upon disposal.
Declaration
public WriteGuard EnterWriteGuard()
Returns
| Type | Description |
|---|---|
| WriteGuard |
Remarks
Write locks entered directly cannot be downgraded to read locks; enter the lock in upgradeable read mode instead if downgrading may be needed.