Project

General

Profile

Bug #11178 ยป 1.rb

cvss (Kirill Vechera), 05/24/2015 09:23 PM

 
@m= Mutex.new
@r = ConditionVariable.new

t = Thread.new {
@m.synchronize do
@r.wait(@m)
end
}

sleep 0.01

@m.synchronize do
t.kill
sleep 0.01
puts "alive?: #{t.alive?}" # the thread should not be alive
t.join # at this point
end
    (1-1/1)