pub unsafe extern "C" fn ucs_callbackq_remove_safe(
cbq: *mut ucs_callbackq_t,
id: c_int,
)Expand description
Remove a callback from the queue in a safe but lazy fashion. The callback will be removed at some point in the near future. This can be used from any context and any thread, including but not limited to:
- A callback can remove another callback or itself.
- A thread can’t remove a callback while another thread is dispatching callbacks.
@param [in] cbq Callback queue to remove the callback from. @param [in] id Callback identifier to remove.