зеркало из https://github.com/github/ruby.git
* thread.c (rb_check_deadlock): decrease number of sleepers before
deadlock detection because the deadlock exception makes main thread run. [ruby-dev:39142] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
3a855da47b
Коммит
f72b854c7d
|
@ -1,3 +1,9 @@
|
|||
Sat Aug 22 00:03:19 2009 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* thread.c (rb_check_deadlock): decrease number of sleepers before
|
||||
deadlock detection because the deadlock exception makes main thread
|
||||
run. [ruby-dev:39142]
|
||||
|
||||
Fri Aug 21 22:34:58 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* enumerator.c (get_next_values): extracted from
|
||||
|
|
1
thread.c
1
thread.c
|
@ -4049,6 +4049,7 @@ rb_check_deadlock(rb_vm_t *vm)
|
|||
printf("%d %d %p %p\n", vm->living_threads->num_entries, vm->sleeper, GET_THREAD(), vm->main_thread);
|
||||
st_foreach(vm->living_threads, debug_i, (st_data_t)0);
|
||||
#endif
|
||||
vm->sleeper--;
|
||||
rb_threadptr_raise(vm->main_thread, 2, argv);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче