GetTempMemoryHandle()
Gets an AtomicSafetyHandle for the temporary memory allocations in a temporary memory scope.
阅读时间1 分钟最后更新于 2 个月前
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.