pub unsafe extern "C" fn ucs_callbackq_add(
cbq: *mut ucs_callbackq_t,
cb: ucs_callback_t,
arg: *mut c_void,
flags: c_uint,
) -> c_intExpand description
Add a callback to the queue. 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 add another callback).
@param [in] cbq Callback queue to add the callback to. @param [in] cb Callback to add. @param [in] arg User-defined argument for the callback. @param [in] flags Flags for the callback, from @ref ucs_callbackq_flags.
@return Unique identifier of the callback in the queue.