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

ruby-changes:13829

From: usa <ko1@a...>
Date: Mon, 2 Nov 2009 13:32:42 +0900 (JST)
Subject: [ruby-changes:13829] Ruby:r25628 (trunk): * thread_pthread.c (native_stop_timer_thread): need to join timer thread

usa	2009-11-02 13:32:28 +0900 (Mon, 02 Nov 2009)

  New Revision: 25628

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

  Log:
    * thread_pthread.c (native_stop_timer_thread): need to join timer thread
      only when really stopping it.

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25627)
+++ ChangeLog	(revision 25628)
@@ -1,3 +1,8 @@
+Mon Nov  2 13:31:14 2009  NAKAMURA Usaku  <usa@r...>
+
+	* thread_pthread.c (native_stop_timer_thread): need to join timer thread
+	  only when really stopping it.
+
 Mon Nov  2 12:55:50 2009  NAKAMURA Usaku  <usa@r...>
 
 	* thread_{pthread,win32}.c (native_stop_timer_thread): join the thread
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 25627)
+++ thread_pthread.c	(revision 25628)
@@ -814,9 +814,9 @@
     stopped = --system_working <= 0;
     if (stopped) {
 	native_cond_signal(&timer_thread_cond);
+	native_thread_join(timer_thread_id);
     }
     native_mutex_unlock(&timer_thread_lock);
-    native_thread_join(timer_thread_id);
     return stopped;
 }
 

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

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