[MacRuby-devel] [MacRuby] #785: Thread.join(limit) is brocken.

MacRuby ruby-noreply at macosforge.org
Tue Jul 13 03:20:26 PDT 2010


#785: Thread.join(limit) is brocken.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 When specified limit with Thread.join, MacRuby is waited for limit even if
 the thread has finished.

 Test Script:
 {{{
 require 'thread'

 t =  Thread.new{
   sleep 1
 }

 t.join(10)
 }}}

 Result of Ruby 1.9.1:
 {{{
 $ time ruby test.rb
 ruby test.rb  0.01s user 0.01s system 2% cpu 1.036 total
 }}}

 Result of MacRuby Trunk:
 {{{
 $ time macruby test.rb
 macruby test.rb  0.16s user 0.03s system 1% cpu 10.180 total
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/785>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list