GetAllowReadOrWriteAccess(AtomicSafetyHandle)
Checks if the AtomicSafetyHandle is configured to allow reading or writing.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
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.