Displaying 1 result from an estimated 1 matches for "sync_sh_locker".
2006 Oct 01
11
Mongrel woes fixed
...false
ret
end
@@ -140,22 +142,27 @@
def sync_lock(m = EX)
return unlock if m == UN
- until (Thread.critical = true; sync_try_lock_sub(m))
+ until (print_critical("sync_lock", "1", "true"); Thread.critical = true; sync_try_lock_sub(m))
if sync_sh_locker[Thread.current]
sync_upgrade_waiting.push [Thread.current, sync_sh_locker[Thread.current]]
sync_sh_locker.delete(Thread.current)
else
+ STDERR.print "[sync_lock:2] Pushing #{Thread.current.inspect} behind #{sync_waiting.size} others\n"
sync_waiting.push Thread.current...