We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c9e48c commit d27dafeCopy full SHA for d27dafe
include/ruby/thread_native.h
@@ -214,7 +214,7 @@ typedef struct gvl_hook {
214
struct gvl_hook *next;
215
} gvl_hook_t;
216
217
-gvl_hook_t * rb_gvl_event_new(void *callback, rb_event_flag_t event);
+gvl_hook_t * rb_gvl_event_new(rb_gvl_callback callback, rb_event_flag_t event);
218
bool rb_gvl_event_delete(gvl_hook_t * hook);
219
RBIMPL_SYMBOL_EXPORT_END()
220
#endif
thread_pthread.c
@@ -105,7 +105,7 @@ static gvl_hook_t * rb_gvl_hooks = NULL;
105
static pthread_rwlock_t rb_gvl_hooks_rw_lock = PTHREAD_RWLOCK_INITIALIZER;
106
107
gvl_hook_t *
108
-rb_gvl_event_new(void *callback, rb_event_flag_t event) {
+rb_gvl_event_new(rb_gvl_callback callback, rb_event_flag_t event) {
109
gvl_hook_t *hook = ALLOC_N(gvl_hook_t, 1);
110
hook->callback = callback;
111
hook->event = event;
0 commit comments