Once.initLeave

Counterpart to g_once_init_enter(). 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 g_once_init_enter() on this initialization variable. Since 2.14

class Once
static
void
initLeave

Parameters

location void*

location of a static initializable variable containing 0

result gsize

new non-0 value for *value_location

Meta