class twisted.python.lockfile.FilesystemLock: (source)
Known subclasses: twisted.internet.defer.DeferredFilesystemLock
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 Variable||name||The name of the file associated with this lock.|
|Instance Variable||clean||Indicates whether this lock was released cleanly by its last owner. Only meaningful after
|Instance Variable||locked||Indicates whether the lock is currently held by this object.|
|Method||lock||Acquire this lock.|
|Method||unlock||Release this lock.|
lockhas been called and returns True.