NativeSetThreadIndexAttribute

class in Unity.Collections.LowLevel.Unsafe

/

Implemented in:UnityEngine.CoreModule

Description

Inject a worker thread index into an int on the job struct.

This is usually used in the implementation of atomic containers. The index is guaranteed to be unique to any other job that might be running in parallel.

Additional resources: JobsUtility.ThreadIndex


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