Once.initLeavePointer

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 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.

Parameters

locationlocation of a static initializable variable containing NULL
resultnew non-NULL value for *location