Bug #11496 ยป mutex-synchronize.patch
| test/ruby/test_thread.rb | ||
|---|---|---|
|
while i<max*max
|
||
|
i+=1
|
||
|
m.synchronize{
|
||
|
r += 1
|
||
|
t = r
|
||
|
t += 1
|
||
|
sleep 0.0001
|
||
|
r = t
|
||
|
}
|
||
|
end
|
||
|
}
|
||