ruby-changes:13830
From: usa <ko1@a...>
Date: Mon, 2 Nov 2009 14:45:50 +0900 (JST)
Subject: [ruby-changes:13830] Ruby:r25629 (trunk): * thread_pthread.c (native_stop_timer_thread): delay joinning timer
usa 2009-11-02 14:45:35 +0900 (Mon, 02 Nov 2009) New Revision: 25629 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25629 Log: * thread_pthread.c (native_stop_timer_thread): delay joinning timer thread after unlocking mutex. Modified files: trunk/ChangeLog trunk/thread_pthread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 25628) +++ ChangeLog (revision 25629) @@ -1,3 +1,8 @@ +Mon Nov 2 14:43:48 2009 NAKAMURA Usaku <usa@r...> + + * thread_pthread.c (native_stop_timer_thread): delay joinning timer + thread after unlocking mutex. + Mon Nov 2 13:31:14 2009 NAKAMURA Usaku <usa@r...> * thread_pthread.c (native_stop_timer_thread): need to join timer thread Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 25628) +++ thread_pthread.c (revision 25629) @@ -814,9 +814,11 @@ stopped = --system_working <= 0; if (stopped) { native_cond_signal(&timer_thread_cond); + } + native_mutex_unlock(&timer_thread_lock); + if (stopped) { native_thread_join(timer_thread_id); } - native_mutex_unlock(&timer_thread_lock); return stopped; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/