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