зеркало из https://github.com/github/ruby.git
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bf8826c510
Коммит
f80896c219
|
@ -1,3 +1,12 @@
|
|||
Thu Sep 22 01:52:48 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* test/io/wait/test_io_wait.rb (TestIOWait#setup): of course, the
|
||||
|
|
|
@ -1013,6 +1013,7 @@ ubf_select(void *ptr)
|
|||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче