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 _cInstanceMethods
void * _cPtr() nothrowglib.types.OnceStatus status() @property nothrowGet `status` field. Returns: the status of the #GOncevoid status(glib.types.OnceStatus propval) @property nothrowSet `status` field. Params: propval = the status of the #GOncebool initEnter(ref void * location) static nothrowFunction 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 initEnterPointer(void * location) static nothrowThis 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) static nothrowCounterpart 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) static nothrowCounterpart 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 ...