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
ruby -v: 1.9.2

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

   #


----------------------------------------
http://redmine.ruby-lang.org