Project

General

Profile

Actions

Bug #3216

closed

#join in thwait.rb only waits for first thread

Added by rogerdpack (Roger Pack) about 15 years ago. Updated about 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
1.9.2
Backport:
[ruby-core:29863]

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0