ruby-changes:21258
From: nagachika <ko1@a...>
Date: Thu, 22 Sep 2011 02:02:41 +0900 (JST)
Subject: [ruby-changes:21258] nagachika:r33307 (trunk): * thread_pthread.c (ubf_select): activate timer thread when interrupt
nagachika 2011-09-22 02:02:21 +0900 (Thu, 22 Sep 2011) New Revision: 33307 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33307 Log: * thread_pthread.c (ubf_select): activate timer thread when interrupt blocking thread. A patch created by Koichi Sasada. [ruby-core:39634] [Bug #5343] to cover race condition, timer thread periodically send SIGVTARLM to threads in signal thread list. so you should activate timer thread when interrupt a thread. Modified files: trunk/ChangeLog trunk/thread_pthread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 33306) +++ ChangeLog (revision 33307) @@ -1,3 +1,12 @@ +Thu Sep 22 01:52:48 2011 CHIKANAGA Tomoyuki <nagachika00@g...> + + * thread_pthread.c (ubf_select): activate timer thread when interrupt + blocking thread. + A patch created by Koichi Sasada. [ruby-core:39634] [Bug #5343] + to cover race condition, timer thread periodically send SIGVTARLM to + threads in signal thread list. so you should activate timer thread + when interrupt a thread. + Wed Sep 21 16:55:26 2011 NAKAMURA Usaku <usa@r...> * test/io/wait/test_io_wait.rb (TestIOWait#setup): of course, the Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 33306) +++ thread_pthread.c (revision 33307) @@ -1013,6 +1013,7 @@ { rb_thread_t *th = (rb_thread_t *)ptr; add_signal_thread_list(th); + rb_thread_wakeup_timer_thread(); /* activate timer thread */ ubf_select_each(th); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/