Skip to main content

lc_set_continuation

Function lc_set_continuation 

Source
#[unsafe(no_mangle)]
pub extern "C" fn lc_set_continuation( ctx: *mut c_void, cb: Option<extern "C" fn(*mut c_void)>, )
Expand description

Run cb at the end of this thread’s next lc_knearest, still inside its pool. A null cb clears it. The hook belongs to the calling thread; a search started on another thread does not run it. The search clears nothing by itself: the caller drops the hook when the call returns.