AtomicSafetyHandle.Release

Declaration

public static void Release(Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle);

Parameters

handle The AtomicSafetyHandle to release.

Description

Releases a previously created AtomicSafetyHandle.

After this call, this AtomicSafetyHandle and copies of it are no longer valid. AtomicSafetyHandle.IsHandleValid returns false.

You must call AtomicSafetyHandle.CheckDeallocateAndThrow before calling Release. Don't call this method for the handle returned by AtomicSafetyHandle.GetTempMemoryHandle or AtomicSafetyHandle.GetTempUnsafePtrSliceHandle, because the lifetime of those handles is automatically managed by the engine.


Did you find this page useful? Please give it a rating: