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

ruby-changes:18784

From: nobu <ko1@a...>
Date: Sun, 6 Feb 2011 19:59:12 +0900 (JST)
Subject: [ruby-changes:18784] Ruby:r30810 (trunk): * thread_pthread.c (register_cached_thread_and_wait): move invalid

nobu	2011-02-06 19:59:03 +0900 (Sun, 06 Feb 2011)

  New Revision: 30810

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

  Log:
    * thread_pthread.c (register_cached_thread_and_wait): move invalid
      storage class function.

  Modified files:
    trunk/thread_pthread.c

Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 30809)
+++ thread_pthread.c	(revision 30810)
@@ -345,6 +345,10 @@
 
 #define USE_THREAD_CACHE 0
 
+#if USE_THREAD_CACHE
+static rb_thread_t *register_cached_thread_and_wait(void);
+#endif
+
 #if defined HAVE_PTHREAD_GETATTR_NP || defined HAVE_PTHREAD_ATTR_GET_NP
 #define STACKADDR_AVAILABLE 1
 #elif defined HAVE_PTHREAD_GET_STACKADDR_NP && defined HAVE_PTHREAD_GET_STACKSIZE_NP
@@ -525,7 +529,6 @@
     if (1) {
 	/* cache thread */
 	rb_thread_t *th;
-	static rb_thread_t *register_cached_thread_and_wait(void);
 	if ((th = register_cached_thread_and_wait()) != 0) {
 	    th_ptr = (void *)th;
 	    th->thread_id = pthread_self();

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

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