Function libmimalloc_sys::mi_option_set

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

Set the option to the given value.

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.