Bug #11040 » monitor_patch.patch
lib/monitor.rb | ||
---|---|---|
return false
|
||
end
|
||
@mon_owner = Thread.current
|
||
@mon_count = 0
|
||
end
|
||
@mon_count += 1
|
||
return true
|
||
... | ... | |
if @mon_owner != Thread.current
|
||
@mon_mutex.lock
|
||
@mon_owner = Thread.current
|
||
@mon_count = 0
|
||
end
|
||
@mon_count += 1
|
||
end
|
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »