[前][次][番号順一覧][スレッド一覧]

ruby-changes:34797

From: nobu <ko1@a...>
Date: Sun, 20 Jul 2014 09:13:24 +0900 (JST)
Subject: [ruby-changes:34797] nobu:r46880 (trunk): thread.c: use RUBY_VM_CHECK_INTS

nobu	2014-07-20 09:13:15 +0900 (Sun, 20 Jul 2014)

  New Revision: 46880

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46880

  Log:
    thread.c: use RUBY_VM_CHECK_INTS
    
    * thread.c (rb_thread_schedule): use dedicated macro
      RUBY_VM_CHECK_INTS().

  Modified files:
    trunk/thread.c
Index: thread.c
===================================================================
--- thread.c	(revision 46879)
+++ thread.c	(revision 46880)
@@ -1210,9 +1210,7 @@ rb_thread_schedule(void) https://github.com/ruby/ruby/blob/trunk/thread.c#L1210
     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 */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]