Thread#wakeup doesn't wake up a sleeping thread
-----------------------------------------------
Key: JRUBY-3176
URL: http://jira.codehaus.org/browse/JRUBY-3176
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.1.5
Environment: OS X 10.5
Reporter: Dirkjan Bussink
Assignee: Thomas E Enebo
Thread#wakeup doesn't wakeup a sleeping thread. This issue is shown by the
following script:
t = Thread.new do
puts "It's: #{Time.now}"
sleep(10)
puts "It's: #{Time.now}"
end
sleep(4)
t.wakeup
t.join
On MRI, this will output:
It's: Sat Nov 22 16:11:16 +0100 2008
It's: Sat Nov 22 16:11:20 +0100 2008
On JRuby 1.1.5 this will output:
It's: Sat Nov 22 16:11:43 +0100 2008
It's: Sat Nov 22 16:11:54 +0100 2008
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email