Struct SpinLockExclusive.ScopedLock
IDisposable scoped structure that holds SpinLockExclusive. Should be using with using
Inherited Members
Namespace: Unity.Logging
Syntax
public struct ScopedLock : IDisposable
Constructors
ScopedLock(SpinLockExclusive)
Creates ScopedLock and locks SpinLockExclusive
Declaration
public ScopedLock(SpinLockExclusive sl)
Parameters
Type | Name | Description |
---|---|---|
SpinLockExclusive | sl | SpinLock to lock |
Methods
Dispose()
Unlocks the lock
Declaration
public void Dispose()