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

ruby-changes:31045

From: nobu <ko1@a...>
Date: Thu, 3 Oct 2013 03:20:22 +0900 (JST)
Subject: [ruby-changes:31045] nobu:r43124 (trunk): * ext/thread/thread.c (Init_thread): move outer module condition.

nobu	2013-10-03 03:20:14 +0900 (Thu, 03 Oct 2013)

  New Revision: 43124

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

  Log:
    * ext/thread/thread.c (Init_thread): move outer module condition.

  Modified files:
    trunk/ext/thread/thread.c
Index: ext/thread/thread.c
===================================================================
--- ext/thread/thread.c	(revision 43123)
+++ ext/thread/thread.c	(revision 43124)
@@ -517,20 +517,22 @@ Init_thread(void) https://github.com/ruby/ruby/blob/trunk/ext/thread/thread.c#L517
 	    rb_const_set(rb_cObject, id, rb_c##name); \
 	}                                             \
     } while (0)
+#define OUTER rb_cThread
 #else
 #define ALIAS_GLOBCAL_CONST(name) do { /* nothing */ } while (0)
+#define OUTER 0
 #endif
 
     VALUE rb_cConditionVariable = rb_struct_define_without_accessor_under(
-	UNDER_THREAD ? rb_cThread : 0,
+	OUTER,
 	"ConditionVariable", rb_cObject, rb_struct_alloc_noinit,
 	"waiters", NULL);
     VALUE rb_cQueue = rb_struct_define_without_accessor_under(
-	UNDER_THREAD ? rb_cThread : 0,
+	OUTER,
 	"Queue", rb_cObject, rb_struct_alloc_noinit,
 	"que", "waiters", NULL);
     VALUE rb_cSizedQueue = rb_struct_define_without_accessor_under(
-	UNDER_THREAD ? rb_cThread : 0,
+	OUTER,
 	"SizedQueue", rb_cQueue, rb_struct_alloc_noinit,
 	"que", "waiters", "queue_waiters", "size", NULL);
 

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

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