Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Release(AtomicSafetyHandle)

Releases a previously created AtomicSafetyHandle.
Read time 1 minuteLast updated 13 days ago

Definition

public static void Release(AtomicSafetyHandle handle)

Parameters

The AtomicSafetyHandle to release.

Remarks

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.