зеркало из https://github.com/github/ruby.git
* thread.c (rb_thread_terminate_all): add a comment why infinite
sleep is safe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b906f0ed17
Коммит
30edf111c5
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Oct 24 12:15:02 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
|
* thread.c (rb_thread_terminate_all): add a comment why infinite
|
||||||
|
sleep is safe.
|
||||||
|
|
||||||
Thu Oct 24 07:41:42 2013 Aman Gupta <ruby@tmm1.net>
|
Thu Oct 24 07:41:42 2013 Aman Gupta <ruby@tmm1.net>
|
||||||
|
|
||||||
* gc.c: add new initial_growth_max tuning parameter.
|
* gc.c: add new initial_growth_max tuning parameter.
|
||||||
|
|
4
thread.c
4
thread.c
|
@ -440,6 +440,10 @@ rb_thread_terminate_all(void)
|
||||||
|
|
||||||
TH_PUSH_TAG(th);
|
TH_PUSH_TAG(th);
|
||||||
if ((state = TH_EXEC_TAG()) == 0) {
|
if ((state = TH_EXEC_TAG()) == 0) {
|
||||||
|
/*
|
||||||
|
* Thread exiting routine in thread_start_func_2 notify
|
||||||
|
* me when the last sub-thread exit.
|
||||||
|
*/
|
||||||
native_sleep(th, 0);
|
native_sleep(th, 0);
|
||||||
RUBY_VM_CHECK_INTS_BLOCKING(th);
|
RUBY_VM_CHECK_INTS_BLOCKING(th);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче