SetAllowSecondaryVersionWriting(AtomicSafetyHandle, bool)
Sets whether other AtomicSafetyHandles that use a secondary version number can write to the NativeContainer protected by a given AtomicSafetyHandle.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.Collections.LowLevel.Unsafe
- Assembly: UnityEngine.CoreModule
public static void SetAllowSecondaryVersionWriting(AtomicSafetyHandle handle, bool allowWriting)
Parameters
The AtomicSafetyHandle of the NativeContainer.
If true, allows write access to the NativeContainer for AtomicSafetyHandles that use secondary version number. If false, handles that usse a secondary version number only have read access to the NativeContainer.
Remarks
Additional Resources: AtomicSafetyHandle.UseSecondaryVersion, Copying NativeContainer structures.