AtomicSafetyHandle.Create

Declaration

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

Returns

AtomicSafetyHandle The newly created AtomicSafetyHandle.

Description

Creates a new AtomicSafetyHandle.

If the memory associated with this NativeContainer is allocated using Allocator.Temp, then use AtomicSafetyHandle.GetTempMemoryHandle instead of this method.

Additional resources: AtomicSafetyHandle.Release.


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