aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-20 00:13:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-20 00:13:15 +0000
commitfcf080151880aad6088e6c8bf148f9c0df25925d (patch)
tree537517338f7a16c545063ae3b824141856729066 /thread.c
parent2f1ce283586d964b246bc2d3422a52a881a12b89 (diff)
downloadruby-fcf080151880aad6088e6c8bf148f9c0df25925d.tar.gz
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
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index 682e05f89e..4d291e677d 100644
--- a/thread.c
+++ b/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 */