Function rb_thread_remove_event_hook

Source
pub unsafe extern "C" fn rb_thread_remove_event_hook(
    thval: VALUE,
    func: rb_event_hook_func_t,
) -> c_int
Expand description

Identical to rb_remove_event_hook, except it additionally takes a thread argument. This extra argument is the same as that of rb_thread_add_event_hook, and this function removes the hook which matches both arguments at once.

ยง@param[in] thval An instance of ::rb_cThread. @param[in] func A callback. @exception rb_eTypeError thval is not a thread. @return Number of deleted event hooks. @note As multiple events can share the same func it is quite possible for the return value to become more than one.

Generated by rb-sys for Ruby mri-x86_64-linux-gnu-3.2.3