Dave Copeland created JRUBY-6373:
------------------------------------
Summary: ThreadError: Mutex is not owned by calling thread, when
interrupting thread using a Ruby Mutex
Key: JRUBY-6373
URL: https://jira.codehaus.org/browse/JRUBY-6373
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6.5
Reporter: Dave Copeland
Assignee: Thomas E Enebo
Given:
{code}
require 'thread'
require 'jruby'
mutex = Mutex.new
mutex.lock
t = Thread.new do
mutex.synchronize {}
end
Thread.pass until t.status == "sleep"
JRuby.reference(t).native_thread.interrupt
t.join
{code}
Produces:
{noformat}
ThreadError: Mutex is not owned by calling thread
__file__ at ./test.rb:10
call at org/jruby/RubyProc.java:270
call at org/jruby/RubyProc.java:224
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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