Projects

Ticket #785 (closed defect: fixed)

Opened 19 months ago

Last modified 19 months ago

Thread.join(limit) is brocken.

Reported by: watson1978@… Owned by: lsansonetti@…
Priority: blocker Milestone: MacRuby 0.7
Component: MacRuby Keywords:
Cc:

Description

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

Change History

Changed 19 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.7

It looks like it has never been implemented correctly. It should behave normally in r4347.

Note: See TracTickets for help on using tickets.