3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ typedef struct gvl_hook {
214
214
struct gvl_hook *next;
215
215
} gvl_hook_t ;
216
216
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);
218
218
bool rb_gvl_event_delete (gvl_hook_t * hook);
219
219
RBIMPL_SYMBOL_EXPORT_END ()
220
220
#endif
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ static gvl_hook_t * rb_gvl_hooks = NULL;
105
105
static pthread_rwlock_t rb_gvl_hooks_rw_lock = PTHREAD_RWLOCK_INITIALIZER ;
106
106
107
107
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 ) {
109
109
gvl_hook_t * hook = ALLOC_N (gvl_hook_t , 1 );
110
110
hook -> callback = callback ;
111
111
hook -> event = event ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ static volatile DWORD ruby_native_thread_key = TLS_OUT_OF_INDEXES;
36
36
static int w32_wait_events (HANDLE * events , int count , DWORD timeout , rb_thread_t * th );
37
37
38
38
gvl_hook_t *
39
- rb_gvl_event_new (void * callback , rb_event_flag_t event ) {
39
+ rb_gvl_event_new (rb_gvl_callback callback , rb_event_flag_t event ) {
40
40
// not implemented yet
41
41
}
42
42
0 commit comments