1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rb_uninterruptible now free from ANYARGS

After 5e86b005c0, I now think ANYARGS is
dangerous and should be extinct.  This function has only one call site
so adding appropriate prototype is trivial.
This commit is contained in:
卜部昌平 2019-08-27 12:40:06 +09:00
parent bd8dc2561d
commit 19b6678132
2 changed files with 2 additions and 2 deletions

View file

@ -2215,7 +2215,7 @@ VALUE rb_thread_shield_release(VALUE self);
VALUE rb_thread_shield_destroy(VALUE self);
int rb_thread_to_be_killed(VALUE thread);
void rb_mutex_allow_trap(VALUE self, int val);
VALUE rb_uninterruptible(VALUE (*b_proc)(ANYARGS), VALUE data);
VALUE rb_uninterruptible(VALUE (*b_proc)(VALUE), VALUE data);
VALUE rb_mutex_owned_p(VALUE self);
/* transcode.c */

View file

@ -5507,7 +5507,7 @@ rb_default_coverage(int n)
}
VALUE
rb_uninterruptible(VALUE (*b_proc)(ANYARGS), VALUE data)
rb_uninterruptible(VALUE (*b_proc)(VALUE), VALUE data)
{
VALUE interrupt_mask = rb_ident_hash_new();
rb_thread_t *cur_th = GET_THREAD();