glib.once

Module for [Once] class

class Once

Types 1

classOnce

A #GOnce struct controls a one-time initialization function. Any one-time initialization function must have its own unique #GOnce struct.

Fields
GOnce _cInstance
Methods
void * _cPtr()
glib.types.OnceStatus status() @propertyGet `status` field. Returns: the status of the #GOnce
void status(glib.types.OnceStatus propval) @propertySet `status` field. Params: propval = the status of the #GOnce
bool initEnter(ref void * location)Function to be called when starting a critical initialization section. The argument location must point to a static 0-initialized variable that will be set to a value other than 0 at the end of the...
bool initEnterImpl(out size_t location)
bool initEnterPointer(void * location)This functions behaves in the same way as [glib.once.Once.initEnter], but can can be used to initialize pointers (or #guintptr) instead of #gsize.
void initLeave(ref void * location, size_t result)Counterpart to [glib.once.Once.initEnter]. Expects a location of a static 0-initialized initialization variable, and an initialization value other than 0. Sets the variable to the initialization va...
void initLeavePointer(void * location, void * result = null)Counterpart to [glib.once.Once.initEnterPointer]. Expects a location of a static `NULL`-initialized initialization variable, and an initialization value other than `NULL`. Sets the variable to the ...
Constructors
this(void * ptr, Flag!"Take" take)