mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 1 additions and 3 deletions
4
thread.c
4
thread.c
|
@ -1210,9 +1210,7 @@ rb_thread_schedule(void)
|
|||
rb_thread_t *cur_th = GET_THREAD();
|
||||
rb_thread_schedule_limits(0);
|
||||
|
||||
if (UNLIKELY(RUBY_VM_INTERRUPTED_ANY(cur_th))) {
|
||||
rb_threadptr_execute_interrupts(cur_th, 0);
|
||||
}
|
||||
RUBY_VM_CHECK_INTS(cur_th);
|
||||
}
|
||||
|
||||
/* blocking region */
|
||||
|
|
Loading…
Reference in a new issue