pomp_loop_idle_remove

Function pomp_loop_idle_remove 

Source
pub unsafe extern "C" fn pomp_loop_idle_remove(
    loop_: *mut pomp_loop,
    cb: pomp_idle_cb_t,
    userdata: *mut c_void,
) -> c_int
Expand description

Unregister a function registered with pomp_loop_idle_add. @param loop : loop. @param cb : callback given in pomp_loop_idle_add. @param userdata : user data given in pomp_loop_idle_add. @return 0 in case of success, negative errno value in case of error.

@remarks: if nothing match the given criteria, no error is returned. @remarks: if several match the given criteria, all are removed. @remarks: this function is safe to call from another thread that the one associated normally with the loop. However caller must ensure that the given loop will be valid for the complete duration of the call.