зеркало из https://github.com/github/ruby.git
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:
Родитель
bd8dc2561d
Коммит
19b6678132
|
@ -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 */
|
||||
|
|
2
thread.c
2
thread.c
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче