AtomicSafetyHandle.GetTempUnsafePtrSliceHandle

Declaration

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

Returns

AtomicSafetyHandle A shared AtomicSafetyHandle.

Description

Gets a single shared AtomicSafetyHandle.

For example, a shared AtomicSafetyHandle might be shared with a NativeSlice that points to stack memory. The shared AtomicSafetyHandle is never disposed, and you can't use it in a job.


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