Create()
Creates a new AtomicSafetyHandle.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
public static AtomicSafetyHandle Create()
Returns
Type | Description |
|---|---|
| AtomicSafetyHandle | The newly created AtomicSafetyHandle. |
Remarks
If the memory associated with this NativeContainer is allocated using Allocator.Temp, then use AtomicSafetyHandle.GetTempMemoryHandle instead of this method.
Additional Resources: AtomicSafetyHandle.Release