AtomicSafetyHandle.SetAllowSecondaryVersionWriting

Declaration

public static void SetAllowSecondaryVersionWriting(Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle, bool allowWriting);

Parameters

handle The AtomicSafetyHandle of the NativeContainer.
allowWriting 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.

Description

Sets whether other AtomicSafetyHandles that use a secondary version number can write to the NativeContainer protected by a given AtomicSafetyHandle.


Did you find this page useful? Please give it a rating: