Create()
Creates a new AtomicSafetyHandle.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
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.