Once.initLeavePointer

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 initialization value, and releases concurrent threads blocking in glib.once.Once.initEnterPointer on this initialization variable.

This functions behaves in the same way as glib.once.Once.initLeave, but can be used to initialize pointers (or #guintptr) instead of #gsize.

class Once
static
void
initLeavePointer
(
void* location
,
void* result = null
)

Parameters

location void*

location of a static initializable variable containing NULL

result void*

new non-NULL value for *location