instant.locking

Package instant :: Module locking |
[hide private]
[frames] | no frames]

# Module locking

source code

File locking for the cache system, to avoid problems when multiple processes work with the same module. Only works on UNIX systems.

Functions | [hide private]
release_all_locks() Release all locks currently held by Instant. | source code
get_lock(cache_dir, module_name) Get a new file lock. | source code
release_lock(lock) Release a lock currently held by Instant. | source code

Variables | [hide private]
| _lock_names = ``{``}``
| _lock_files = ``{``}``
| _lock_count = ``{``}``
| __package__ = ``'``instant``'``