Legacy Documentation: Version 2018.2 (Go to current version)
LanguageEnglish
  • C#

NativeSetThreadIndexAttribute

class in Unity.Collections.LowLevel.Unsafe

/

Implemented in:UnityEngine.CoreModule

Description

This attribute can 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.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答