Function libmimalloc_sys::mi_option_set_default

source ยท
pub unsafe extern "C" fn mi_option_set_default(
    option: mi_option_t,
    value: c_long,
)
Expand description

If the given option has not yet been initialized with mi_option_set or mi_option_set_enabled, sets the option to the given value. If it has, this function does nothing.

The value of boolean options is 1 or 0, however experimental options exist which take a numeric value, which is the intended use of this function.

These options are not exposed as constants for stability reasons, however you can still use them as arguments to this and other mi_option_ functions if needed.

Note: this function is not thread safe.