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

ruby-changes:25675

From: kosaki <ko1@a...>
Date: Mon, 19 Nov 2012 20:15:18 +0900 (JST)
Subject: [ruby-changes:25675] kosaki:r37732 (trunk): * thread.c (rb_thread_s_check_interrupt): removed redundant

kosaki	2012-11-19 20:15:07 +0900 (Mon, 19 Nov 2012)

  New Revision: 37732

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

  Log:
    * thread.c (rb_thread_s_check_interrupt): removed redundant
      GET_THREAD().

  Modified files:
    trunk/ChangeLog
    trunk/thread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37731)
+++ ChangeLog	(revision 37732)
@@ -1,3 +1,8 @@
+Tue Nov 20 10:14:22 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* thread.c (rb_thread_s_check_interrupt): removed redundant
+	  GET_THREAD().
+
 Tue Nov 20 10:12:46 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* thread.c (rb_threadptr_async_errinfo_active_p): added a small
Index: thread.c
===================================================================
--- thread.c	(revision 37731)
+++ thread.c	(revision 37732)
@@ -1682,12 +1682,12 @@
 static VALUE
 rb_thread_s_check_interrupt(VALUE self)
 {
-    rb_thread_t *th = GET_THREAD();
+    rb_thread_t *cur_th = GET_THREAD();
 
-    if (!rb_threadptr_async_errinfo_empty_p(th)) {
+    if (!rb_threadptr_async_errinfo_empty_p(cur_th)) {
 	VALUE mask = rb_hash_new();
 	rb_hash_aset(mask, rb_cObject, ID2SYM(rb_intern("immediate")));
-	rb_threadptr_interrupt_mask(GET_THREAD(), mask, check_interrupt_func);
+	rb_threadptr_interrupt_mask(cur_th, mask, check_interrupt_func);
     }
 
     return Qnil;

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

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