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
location | location of a static initializable variable containing NULL |
result | new non-NULL value for *location |