![]() |
The Gaudi Framework
v27r1
|
Lock a file. More...
Public Member Functions | |
def | __init__ |
def | __del__ (self) |
def | __enter__ (self) |
def | __exit__ (self, type, value, traceback) |
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.__init__ | ( | self, | |
name, | |||
temporary = False |
|||
) |