Part of twisted.python.lockfile View Source View In Hierarchy
Known subclasses: twisted.internet.defer.DeferredFilesystemLock
A mutex.This relies on the filesystem property that creating a symlink is an atomic operation and that it will fail if the symlink already exists. Deleting the symlink will release the lock.
|Instance Variables||name||The name of the file associated with this lock.|
|clean||Indicates whether this lock was released cleanly by its last owner.
Only meaningful after |
|Returns||True if the lock is acquired, false otherwise.
|Raises||Any exception os.symlink() may raise, other than EEXIST.|
Release this lock.This deletes the directory with the given name.
|Raises||Any exception os.readlink() may raise, or ValueError if the lock is not owned by this process.|