Add useful link to locking blog

This commit is contained in:
Joshua Harlow 2015-12-13 12:04:17 -08:00
parent 4641f5bdd8
commit 0797b37095
1 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,11 @@ class _InterProcessLock(object):
safe to close the file descriptor while another thread holds the
lock. Just opening and closing the lock file can break synchronization,
so lock files must be accessed only using this abstraction.
.. warning::
It is quite useful to read before using (to understand
the risks involved): http://0pointer.de/blog/projects/locking.html
"""
MAX_DELAY = 0.1