Function libmimalloc_sys::mi_option_get

source ·
pub unsafe extern "C" fn mi_option_get(option: mi_option_t) -> c_long
Expand description

Returns the value of the provided option.

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, see the mimalloc documentation for details: https://microsoft.github.io/mimalloc/group__options.html

Note: this function is not thread safe.