Open
Description
Is there a way to add an argument to the LockFile class, such as "writer" or "reader", in order to:
-
allow multiple readings between processes and threads (like
with LockFile("file.txt", mode="reader"):
) avoiding writing -
not allow readings while writing (like
with LockFile("file.txt", mode="writer"):
)
Thanks
Edit: the operations are not referred to the file "file.txt", that file is just used as a locker.