The Gaudi Framework
v25r5
|
Lock a file. More...
Public Member Functions | |
def | __init__ |
def | __del__ |
def | __enter__ |
def | __exit__ |
Public Attributes | |
name | |
temporary | |
file | |
log | |
Lock a file.
The file for the lock is created if it doesn't exists and it the "temporary" argument is set to True it will also be deleted when the lock is not needed. The unlocking is done in the destructor (RAII pattern).
def locker.LockFile.__enter__ | ( | self | ) |
def locker.LockFile.__exit__ | ( | self, | |
type, | |||
value, | |||
traceback | |||
) |