Struct KeyLock<T>
Represents an acquired lock for a specific key in a KeyLocker<T>. Disposing the instance releases the lock.
Implements
Namespace: Singulink.Threading
Assembly: Singulink.Threading.dll
Syntax
public struct KeyLock<T> : IDisposable where T : notnull
Type Parameters
Name | Description |
---|---|
T |
Properties
Name | Description |
---|---|
Key | Gets the key associated with this lock. |
Parent | Gets the parent KeyLocker<T> that this lock is associated with. |
Methods
Name | Description |
---|---|
Dispose() | Releases the lock associated with the key. |