Mercurial > summit-idp
view summitidp/locking.py @ 77:bd006fdd172f default tip
removed cachedfilestorage from easy, since it makes wsgi configs w/ multiple processes fail.
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Fri, 02 Jul 2010 18:33:32 -0400 |
parents | 50297a64414c |
children |
line wrap: on
line source
import threading def synced_app(app): lock = threading.Lock() def synced_wsgi_app(environ, start_response): lock.acquire() try: return app(environ, start_response) finally: lock.release() return synced_wsgi_app