Struct SpinLockEntry
A lightweight, disposable object representing an acquired spin lock.
public ref struct SpinLockEntry : IDisposable
- Implements
- Inherited Members
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Remarks
Releases previously acquired spin lock.
Enter(ref SpinLock)
Acquires a spin lock and creates a new SpinLockEntry.
public static SpinLockEntry Enter(ref SpinLock @lock)
Parameters
lockSpinLockSpin lock to acquire.
Returns
- SpinLockEntry
A disposable SpinLockEntry instance.