기술 자료

Unity Engine

Unity Engine

Dispose(ref AtomicSafetyHandle, ref DisposeSentinel)

Releases the AtomicSafetyHandle and clears the DisposeSentinel.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

Dispose(AtomicSafetyHandle, DisposeSentinel)

public static void Dispose(ref AtomicSafetyHandle safety, ref DisposeSentinel sentinel)

Parameters

The
AtomicSafetyHandle
returned when invoking the Create method.

The
DisposeSentinel
to clear.

Remarks

If the
AtomicSafetyHandle
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.