GetAllowReadOrWriteAccess(AtomicSafetyHandle)
Checks if the AtomicSafetyHandle is configured to allow reading or writing.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.ManagedKernelModule
public static bool GetAllowReadOrWriteAccess(AtomicSafetyHandle handle)
Parameters
The AtomicSafetyHandle to check.
Returns
Type | Description |
|---|---|
| bool | True if the AtomicSafetyHandle is configured to allow reading or writing, false otherwise. |
Remarks
Read and write access is allowed by default in any newly created AtomicSafetyHandle.
Additional Resources: AtomicSafetyHandle.SetAllowReadOrWriteAccess