Of flock() operations on a file.
|
__init__(self,
file_path,
fd=None,
fobj=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
|
|
|
|
acquire_shared(self)
Acquire the lock in shared mode. |
source code
|
|
bool
|
|
|
acquire_exclusive(self)
Acquire the lock in exclusive mode. |
source code
|
|
bool
|
|
|
promote(self)
Promote a lock acquired in shared mode to exclusive mode. |
source code
|
|
|
try_promote(self)
Promote a lock acquired in shared mode to exclusive mode, non
blocking. |
source code
|
|
|
demote(self)
Demote a lock acquired in exclusive mode to shared mode. |
source code
|
|
|
release(self)
Release the lock previously acquired. |
source code
|
|
|
get_path(self)
Return the file path associated with this instance. |
source code
|
|
|
|
|
close(self)
Close the underlying file object. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|