Dispose(ref AtomicSafetyHandle, ref DisposeSentinel)
Releases the AtomicSafetyHandle and clears the DisposeSentinel.
읽는 시간 1분최근 업데이트: 한 달 전
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