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.
Aliased Type§
enum mi_deferred_free_fun {
None,
Some(unsafe extern "C" fn(_: bool, _: u64, _: *mut c_void)),
}