Dispose(ref AtomicSafetyHandle, ref DisposeSentinel)
Releases the AtomicSafetyHandle and clears the DisposeSentinel.
Read time 1 minuteLast updated 18 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
Dispose(AtomicSafetyHandle, DisposeSentinel)
public static void Dispose(ref AtomicSafetyHandle safety, ref DisposeSentinel sentinel)
Parameters
The returned when invoking the Create method.
AtomicSafetyHandleThe to clear.
DisposeSentinelRemarks
If the can't be released, which usually happens either because a job is accessing the data or because the handle has already been released, an exception is thrown.
AtomicSafetyHandle