Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

AtomicSafetyHandle.CheckReadAndThrow

Declaration

public static void CheckReadAndThrow(Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle);

Parameters

handle The AtomicSafetyHandle to check.

Description

Check whether the referenced native container can be read from.

Throws an exception if the AtomicSafetyHandle is already destroyed, or a job is currently writing to the data.