AtomicSafetyHandle.IsDefaultValue

Declaration

public static bool IsDefaultValue(ref Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle);

Parameters

handle The AtomicSafetyHandle to check.

Returns

bool true if the AtomicSafetyHandle hasn't been initialized and still has its default value; false otherwise.

Description

Checks if an AtomicSafetyHandle has its default value.

An AtomicSafetyHandle still has its default value if it hasn't been initialized by being assigned or passed to AtomicSafetyHandle.Create. By default, an AtomicSafetyHandle variable isn't initialized, which means it doesn't reference any central record and doesn't have a stored a version number. This changes when you pass the variable to AtomicSafetyHandle.Create, or when you assign it from an existing initialized AtomicSafetyHandle.


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