mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/generator.rb: (Generator#initialize): should kill @loop_thread
before starting new thread. (occurs when called via Generator#rewind) [ruby-dev:28184] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eaa1cca601
commit
162338d755
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Dec 31 11:53:16 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* lib/generator.rb: (Generator#initialize): should kill @loop_thread
|
||||
before starting new thread. (occurs when called via Generator#rewind)
|
||||
[ruby-dev:28184]
|
||||
|
||||
Fri Dec 30 18:22:42 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* gc.c (garbage_collect): mark objects refered from aborting threads.
|
||||
|
|
|
@ -71,6 +71,8 @@ class Generator
|
|||
end
|
||||
@index = 0
|
||||
@queue = []
|
||||
@main_thread = nil
|
||||
@loop_thread.kill if defined?(@loop_thread)
|
||||
@loop_thread = Thread.new do
|
||||
Thread.stop
|
||||
begin
|
||||
|
|
Loading…
Reference in a new issue