Struct SpinLockExclusive
Burst-friendly synchronization primitive
Implements
Inherited Members
Namespace: Unity.Logging
Assembly: solution.dll
Syntax
public struct SpinLockExclusive : IDisposable
Constructors
Name | Description |
---|---|
SpinLockExclusive(Allocator) | Constructor for the spin lock |
Properties
Name | Description |
---|---|
Locked | True if locked |
Methods
Name | Description |
---|---|
Dispose() | Dispose this spin lock. IDisposable |
Lock() | Lock. Will block if cannot lock immediately |
TryLock(ref bool) | Try to lock. Won't block |
Unlock() | Unlock the spin lock |