⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (240 Bytes)
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)
Loading...