Skip to content

Commit

Permalink
Fix callback type
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jan 27, 2022
1 parent 5c9e48c commit fed36e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/ruby/thread_native.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ typedef struct gvl_hook {
struct gvl_hook *next;
} gvl_hook_t;

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);
bool rb_gvl_event_delete(gvl_hook_t * hook);
RBIMPL_SYMBOL_EXPORT_END()
#endif
2 changes: 1 addition & 1 deletion thread_pthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static gvl_hook_t * rb_gvl_hooks = NULL;
static pthread_rwlock_t rb_gvl_hooks_rw_lock = PTHREAD_RWLOCK_INITIALIZER;

gvl_hook_t *
rb_gvl_event_new(void *callback, rb_event_flag_t event) {
rb_gvl_event_new(rb_gvl_callback callback, rb_event_flag_t event) {
gvl_hook_t *hook = ALLOC_N(gvl_hook_t, 1);
hook->callback = callback;
hook->event = event;
Expand Down
2 changes: 1 addition & 1 deletion thread_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static volatile DWORD ruby_native_thread_key = TLS_OUT_OF_INDEXES;
static int w32_wait_events(HANDLE *events, int count, DWORD timeout, rb_thread_t *th);

gvl_hook_t *
rb_gvl_event_new(void *callback, rb_event_flag_t event) {
rb_gvl_event_new(rb_gvl_callback callback, rb_event_flag_t event) {
// not implemented yet
}

Expand Down

0 comments on commit fed36e0

Please sign in to comment.