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

ruby-changes:5873

From: nobu <ko1@a...>
Date: Tue, 17 Jun 2008 21:58:38 +0900 (JST)
Subject: [ruby-changes:5873] Ruby:r17380 (trunk): * thread_pthread.c (native_thread_init_stack): suppress warnings.

nobu	2008-06-17 21:58:31 +0900 (Tue, 17 Jun 2008)

  New Revision: 17380

  Modified files:
    trunk/thread_pthread.c

  Log:
    * thread_pthread.c (native_thread_init_stack): suppress warnings.

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/thread_pthread.c?r1=17380&r2=17379&diff_format=u

Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 17379)
+++ thread_pthread.c	(revision 17380)
@@ -229,13 +229,15 @@
     else {
 #ifdef HAVE_PTHREAD_GETATTR_NP
 	pthread_attr_t attr;
+	void *start;
 	CHECK_ERR(pthread_getattr_np(curr, &attr));
 # if defined HAVE_PTHREAD_ATTR_GETSTACK
-	CHECK_ERR(pthread_attr_getstack(&attr, &th->machine_stack_start, &th->machine_stack_maxsize));
+	CHECK_ERR(pthread_attr_getstack(&attr, &start, &th->machine_stack_maxsize));
 # elif defined HAVE_PTHREAD_ATTR_GETSTACKSIZE && defined HAVE_PTHREAD_ATTR_GETSTACKADDR
-	CHECK_ERR(pthread_attr_getstackaddr(&attr, &th->machine_stack_start));
+	CHECK_ERR(pthread_attr_getstackaddr(&attr, &start));
 	CHECK_ERR(pthread_attr_getstacksize(&attr, &th->machine_stack_maxsize));
 # endif
+	th->machine_stack_start = start;
 #else
 	rb_raise(rb_eNotImpError, "ruby engine can initialize only in the main thread");
 #endif

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

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