1
0
Fork 0
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:
nobu 2014-07-20 00:13:15 +00:00
parent 2f1ce28358
commit fcf0801518

View file

@ -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 */