AtomicSafetyHandle.GetTempMemoryHandle

Declaration

public static Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle GetTempMemoryHandle();

Returns

AtomicSafetyHandle The AtomicSafetyHandle for temporary memory allocations in the current scope.

Description

Gets an AtomicSafetyHandle for the temporary memory allocations in a temporary memory scope.

The temporary safety handle is invalidated when the temporary memory is freed. This happens when the active temporary memory scope exists, which happens at least once per frame. Don't manually call Release on this AtomicSafetyHandle.

Additional resources: AtomicSafetyHandle.IsTempMemoryHandle.


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