Namespaces

Enumerations

enum class CheckType
Name Value Comments
None 0

No checks are performed.

Basic 1

Initialization checks are performed. If multiple threads will access the
global variable, initialization must be manually serialized with respect
to the guard variable.

Atomic 2

Initialization checks are performed using atomic operations. Checks are
guaranteed to be consistent, even when races occur over initialization.

Default None

The default check type as specified by the build. This is the check type
used when not explicitly specified. It may also be specified explicitly
to defer to the build configuration when setting other options.
TODO(eieio): Add the build arg and conditional logic.

Enum that specifies what kind of debug init checks to perform for a

lazy-initialized global variable.

Defined at line 12 of file ../../zircon/system/ulib/lazy_init/include/lib/lazy_init/options.h

enum class Destructor
Name Value Comments
Disabled 0 --
Enabled 1 --
Default Disabled

The default destructor enablement as specified by the build. This is the
enablement used when not explicitly specified. It may also be specified
explicitly to defer to the build configuration when setting other
options.
TODO(eieio): Add the build arg and conditional logic.

Enum that specifies whether to enable a lazy-initialized global variable's

destructor. Disabling global destructors avoids destructor registration.

However, destructors can be conditionally enabled on builds that require

them, such as ASAN.

Defined at line 36 of file ../../zircon/system/ulib/lazy_init/include/lib/lazy_init/options.h

Records