DisposeSentinel.Dispose
public static void Dispose(ref Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle safety,
ref Unity.Collections.LowLevel.Unsafe.DisposeSentinel sentinel);
Parameters
| safety | The AtomicSafetyHandle returned when invoking Create. | |
| sentinel | The DisposeSentinel. |
Description 描述
Releases the AtomicSafetyHandle and clears the DisposeSentinel.
In case the AtomicSafetyHandle cannot 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.