diff options
Diffstat (limited to 'include/ruby')
| -rw-r--r-- | include/ruby/intern.h | 5 | ||||
| -rw-r--r-- | include/ruby/ruby.h | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index ca6937a42..dbb9a9b07 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -543,9 +543,8 @@ VALUE rb_struct_iv_get(VALUE, const char*); VALUE rb_struct_s_members(VALUE); VALUE rb_struct_members(VALUE); /* thread.c */ -typedef struct rb_thread_struct rb_thread_t; -typedef void rb_unblock_function_t(rb_thread_t *, void *); -typedef VALUE rb_blocking_function_t(rb_thread_t *th, void *); +typedef void rb_unblock_function_t(void *); +typedef VALUE rb_blocking_function_t(void *); VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, rb_unblock_function_t *ubf, void *data2); #define RB_UBF_DFL ((rb_unblock_function_t *)-1) diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 581c1957d..384f7f4f5 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -963,11 +963,8 @@ typedef struct rb_event_hook_struct { struct rb_event_hook_struct *next; } rb_event_hook_t; -void rb_thread_add_event_hook(rb_thread_t *th, rb_event_hook_func_t func, - rb_event_flag_t events, VALUE data); void rb_add_event_hook(rb_event_hook_func_t func, rb_event_flag_t events, VALUE data); -int rb_thread_remove_event_hook(rb_thread_t *th, rb_event_hook_func_t func); int rb_remove_event_hook(rb_event_hook_func_t func); #if defined(__cplusplus) |
