Skip to content

Commit d27dafe

Browse files
committedJan 27, 2022
Fix callback type
1 parent 5c9e48c commit d27dafe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎include/ruby/thread_native.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ typedef struct gvl_hook {
214214
struct gvl_hook *next;
215215
} gvl_hook_t;
216216

217-
gvl_hook_t * rb_gvl_event_new(void *callback, rb_event_flag_t event);
217+
gvl_hook_t * rb_gvl_event_new(rb_gvl_callback callback, rb_event_flag_t event);
218218
bool rb_gvl_event_delete(gvl_hook_t * hook);
219219
RBIMPL_SYMBOL_EXPORT_END()
220220
#endif

‎thread_pthread.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static gvl_hook_t * rb_gvl_hooks = NULL;
105105
static pthread_rwlock_t rb_gvl_hooks_rw_lock = PTHREAD_RWLOCK_INITIALIZER;
106106

107107
gvl_hook_t *
108-
rb_gvl_event_new(void *callback, rb_event_flag_t event) {
108+
rb_gvl_event_new(rb_gvl_callback callback, rb_event_flag_t event) {
109109
gvl_hook_t *hook = ALLOC_N(gvl_hook_t, 1);
110110
hook->callback = callback;
111111
hook->event = event;

0 commit comments

Comments
 (0)
Failed to load comments.