Bug #3216
closed#join in thwait.rb only waits for first thread
Description
=begin
Thwait#join's rdoc says it will "wait for all threads" but currently it only waits for the first.
I think this patch is right.
Thank you!
-rp
Index: lib/thwait.rb¶
--- lib/thwait.rb (revision 27536)
+++ lib/thwait.rb (working copy)
@@ -78,7 +78,7 @@
#
def join(*threads)
join_nowait(*threads)
- next_wait
- all_waits
end
#
=end
Updated by nobu (Nobuyoshi Nakada) about 14 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r27542.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Updated by keiju (Keiju Ishitsuka) about 14 years ago
=begin
けいじゅ@いしつかです.
英語だと微妙な表現ができないので...
In [ruby-core:29863] the message: "[ruby-core:29863] [Bug #3216] #join
in thwait.rb only waits for first thread", on Apr/29 03:47(JST) Roger
Pack writes:
Bug #3216: #join in thwait.rb only waits for first thread
http://redmine.ruby-lang.org/issues/show/3216Author: Roger Pack
Status: Open, Priority: Normal
ruby -v: 1.9.2
Thwait#join's rdoc says it will "wait for all threads" but currently
it only waits for the first.
これは, rdocの方のバグです. 日本語だと
(JP: 同期するスレッドを指定し, いずれかのスレッドが終了するまで待ち)¶
(JP: にはいる.)¶
となっています. とすると:
Waits for specified threads to terminate, and returns when any¶
thread terminated.¶
を
Waits for specified threads to terminate, and returns when some¶
thread terminated.¶
でよい?
__
---------------------------------------------------->> 石塚 圭樹 <<---
---------------------------------->> e-mail: keiju@ishitsuka.com <<---
=end
Updated by nobu (Nobuyoshi Nakada) about 14 years ago
=begin
なかだです。
At Thu, 29 Apr 2010 12:51:46 +0900,
keiju ISHITSUKA wrote in [ruby-dev:41092]:
これは, rdocの方のバグです. 日本語だと
(JP: 同期するスレッドを指定し, いずれかのスレッドが終了するまで待ち)¶
(JP: にはいる.)¶
となっています. とすると:
Waits for specified threads to terminate, and returns when any¶
thread terminated.¶
を
Waits for specified threads to terminate, and returns when some¶
thread terminated.¶
でよい?
終了するスレッドは一つでいいので、「some thread」は(単複が合って
いないのはともかく)不適切ではないでしょうか
..., and returns when one of the threads terminated.
とか?
--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
中田 伸悦
=end
Updated by keiju (Keiju Ishitsuka) about 14 years ago
=begin
けいじゅ@いしつかです.
In [ruby-dev:41093] the message: "[ruby-dev:41093] Re:
[ruby-core:29863] [Bug #3216] #join in thwait.rb only waits for first
thread", on Apr/29 15:02(JST) Nobuyoshi Nakada writes:
なかだです。
終了するスレッドは一つでいいので、「some thread」は(単複が合って
いないのはともかく)不適切ではないでしょうか..., and returns when one of the threads terminated.
とか?
了解. ありがとうございます.
__
---------------------------------------------------->> 石塚 圭樹 <<---
---------------------------------->> e-mail: keiju@ishitsuka.com <<---
=end
Updated by keiju (Keiju Ishitsuka) about 14 years ago
=begin
Hi. Roger,
In [ruby-core:29863] the message: "[ruby-core:29863] [Bug #3216] #join
in thwait.rb only waits for first thread", on Apr/29 03:47(JST) Roger
Pack writes:
Bug #3216: #join in thwait.rb only waits for first thread
http://redmine.ruby-lang.org/issues/show/3216
Author: Roger Pack
Status: Open, Priority: Normal
Thwait#join's rdoc says it will "wait for all threads" but currently
it only waits for the first.
This is rdoc's bug.
Waits for specified threads to terminate, and returns when any¶
thread terminated.¶
right rdoc is:
Waits for specified threads to terminate, and returns when one of¶
the threads terminated.¶
-- keiju
=end
Updated by nobu (Nobuyoshi Nakada) about 14 years ago
=begin
なかだです。
At Thu, 29 Apr 2010 18:06:03 +0900,
石塚圭樹 wrote in [ruby-dev:41095]:
終了するスレッドは一つでいいので、「some thread」は(単複が合って
いないのはともかく)不適切ではないでしょうか..., and returns when one of the threads terminated.
とか?
了解. ありがとうございます.
[ruby-core:29877]を見て気づいたのですが、今のrdocはr27542で私が
今日",and..."以降を追加したものです。その前の[ruby-core:29863]の
時点では、"It waits for specified threads to terminate."だけで、
終了条件がどちらとも取れそうな感じでした。
--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
中田 伸悦
=end
Updated by nobu (Nobuyoshi Nakada) about 14 years ago
=begin
なかだです。
At Thu, 29 Apr 2010 18:34:20 +0900,
Nobuyoshi Nakada wrote in [ruby-dev:41096]:
[ruby-core:29877]を見て気づいたのですが、今のrdocはr27542で私が
今日",and..."以降を追加したものです。その前の[ruby-core:29863]の
時点では、"It waits for specified threads to terminate."だけで、
終了条件がどちらとも取れそうな感じでした。
ちょっと訂正。Itはなくてこうでした。
Waits for specified threads to terminate.¶
--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
中田 伸悦
=end
Updated by keiju (Keiju Ishitsuka) about 14 years ago
=begin
けいじゅ@いしつかです.
In [ruby-dev:41097] the message: "[ruby-dev:41097] Re:
[ruby-core:29863] [Bug #3216] #join in thwait.rb only waits for first
thread", on Apr/29 18:36(JST) Nobuyoshi Nakada writes:
なかだです。
[ruby-core:29877]を見て気づいたのですが、今のrdocはr27542で私が
今日",and..."以降を追加したものです。その前の[ruby-core:29863]の
時点では、"It waits for specified threads to terminate."だけで、
終了条件がどちらとも取れそうな感じでした。
なるほど...
ちょっと訂正。Itはなくてこうでした。
Waits for specified threads to terminate.¶
了解です.
コミットまでしていただいてありがとうございます.
__
---------------------------------------------------->> 石塚 圭樹 <<---
---------------------------------->> e-mail: keiju@ishitsuka.com <<---
=end