Once.initLeave

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

While location has a volatile qualifier, this is a historical artifact and the pointer passed to it should not be volatile.

Parameters

locationlocation of a static initializable variable containing 0
resultnew non-0 value for *value_location