GetTempMemoryHandle()
Gets an AtomicSafetyHandle for the temporary memory allocations in a temporary memory scope.
Read time 1 minuteLast updated 19 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
public static AtomicSafetyHandle GetTempMemoryHandle()
Returns
Type | Description |
|---|---|
| AtomicSafetyHandle | The AtomicSafetyHandle for temporary memory allocations in the current scope. |
Remarks
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 AtomicSafetyHandle.Release on this AtomicSafetyHandle.
Additional Resources: AtomicSafetyHandle.IsTempMemoryHandle.