pub unsafe extern "C" fn ucs_callbackq_remove_if(
cbq: *mut ucs_callbackq_t,
pred: ucs_callbackq_predicate_t,
arg: *mut c_void,
)Expand description
Remove all callbacks from the queue for which the given predicate returns “true” (nonzero) value. This is not safe to call while another thread might be dispatching callbacks. However, it can be used from the dispatch context (e.g a callback may use this function to remove itself or another callback). In this case, the callback may still be dispatched once after this function returned.
@param [in] cbq Callback queue. @param [in] pred Predicate to check candidates for removal. @param [in] arg User-defined argument for the predicate.