thread.c: use RUBY_VM_CHECK_INTS
* thread.c (rb_thread_schedule): use dedicated macro RUBY_VM_CHECK_INTS(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2f1ce28358
commit
fcf0801518
4
thread.c
4
thread.c
@ -1210,9 +1210,7 @@ rb_thread_schedule(void)
|
|||||||
rb_thread_t *cur_th = GET_THREAD();
|
rb_thread_t *cur_th = GET_THREAD();
|
||||||
rb_thread_schedule_limits(0);
|
rb_thread_schedule_limits(0);
|
||||||
|
|
||||||
if (UNLIKELY(RUBY_VM_INTERRUPTED_ANY(cur_th))) {
|
RUBY_VM_CHECK_INTS(cur_th);
|
||||||
rb_threadptr_execute_interrupts(cur_th, 0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* blocking region */
|
/* blocking region */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user