summaryrefslogtreecommitdiff
path: root/portato/__init__.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-04-24 17:52:36 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-04-24 17:52:36 +0200
commit88d24a170b7868c0e518b88acc245416e44b4a88 (patch)
treebf6cf41e836c3e116a1ea7a717b38c4f14d1919b /portato/__init__.py
parent05edd05088ca7f8f76f2c2b7dda9658b6cb50678 (diff)
downloadportato-88d24a170b7868c0e518b88acc245416e44b4a88.tar.gz
portato-88d24a170b7868c0e518b88acc245416e44b4a88.tar.bz2
portato-88d24a170b7868c0e518b88acc245416e44b4a88.zip
Fix import error
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
_mtime is compared to time(2). If TTL has expired (or the file didn't exist), the cached file is regenerated. When generating a cached file, locking is used to avoid parallell processing of the request. If multiple processes tries to aquire the same lock, the ones who fail to get the lock serves the (expired) cached file. If the cached file don't exist, the process instead calls sched_yield(2) before restarting the request processing. Signed-off-by: Lars Hjemli <hjemli@gmail.com>