Skip to content

Improvement: add support for read/write locks #3

Description

@LukeButters

Hi
This project is rather nice, it seems to solve the releasing of unused locks rather well :). My problem however needs read/write locks. What are your thoughts in supporting read/write locks. The interface at the top would have methods:

void executeLockedExclusive(Object key, LockCallback callback);
void executeLockedShared(Object key, LockCallback callback);

Looking at your code it doesn't seem like it would be to complicated to add. I am happy to write the changes however I want to know if these features are something you want in the project.

-Luke

p.s. I raised this as a issue as I wasn't sure of a better way to discuss this with @mojgh and @Avinash-Bhat

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions