Type Alias libmimalloc_sys::mi_deferred_free_fun

source ·
pub type mi_deferred_free_fun = Option<unsafe extern "C" fn(force: bool, heartbeat: c_ulonglong, arg: *mut c_void)>;
Expand description

Type of deferred free functions. Must be thread-safe.

  • force: If true, all outstanding items should be freed.
  • heartbeat A monotonically increasing count.
  • arg Argument that was passed at registration to hold extra state.

See mi_register_deferred_free

Aliased Type§

enum mi_deferred_free_fun {
    None,
    Some(unsafe extern "C" fn(_: bool, _: u64, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: bool, _: u64, _: *mut c_void))

Some value of type T.