Skip to content

Allow multiple readers #58

Open
Open
@cppntn

Description

@cppntn

Is there a way to add an argument to the LockFile class, such as "writer" or "reader", in order to:

  1. allow multiple readings between processes and threads (like with LockFile("file.txt", mode="reader"):) avoiding writing

  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions