pub type b3FinishTaskCallback = Option<unsafe extern "C" fn(userTask: *mut c_void, userContext: *mut c_void)>;Expand description
Finishes a user task object that wraps a Box3D task. This must block until the task has completed. The step blocks here on the tasks it spawned, so b3World_Step holds its stack across every fork/join. Drive it from a thread you can dedicate to the step, or from a fiber this callback can park to free the underlying thread. In a job system that cannot park a job’s stack, do not call b3World_Step from inside a job: a job that blocks on its own sub-jobs without yielding its thread can deadlock. The in-tree scheduler instead runs other pending tasks on the waiting thread. @ingroup world
Aliased Type§
pub enum b3FinishTaskCallback {
None,
Some(unsafe extern "C" fn(*mut c_void, *mut c_void)),
}