CheckReadAndThrow(AtomicSafetyHandle)
Check whether the referenced native container can be read from.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
[Conditional("ENABLE_UNITY_COLLECTIONS_CHECKS")]public static void CheckReadAndThrow(AtomicSafetyHandle handle)
Parameters
The AtomicSafetyHandle to check.
Remarks
Throws an exception if the AtomicSafetyHandle is already destroyed, or a job is currently writing to the data.