Once.initLeave

Counterpart to 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 Once.initEnter on this initialization variable.

class Once
static
void
initLeave
(
void* location
,
size_t result
)

Parameters

location void*

location of a static initializable variable containing 0

result size_t

new non-0 value for *value_location

Meta

Since

2.14