Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redo locks with dashmap #72

Merged
merged 4 commits into from Aug 4, 2022
Merged

Redo locks with dashmap #72

merged 4 commits into from Aug 4, 2022

Conversation

palfrey
Copy link
Owner

@palfrey palfrey commented Jul 22, 2022

Attempting to solve a problem spotted in #71. Mainly, that if there's any thread trying to add a new key into LOCKS, it'll fail while there's another one doing reads. dashmap gives us proper concurrent access, especially given we don't add a new entry to the hashmap once we've added the first lock, which I think solves this.

@palfrey palfrey mentioned this pull request Jul 22, 2022
@palfrey palfrey merged commit 34d6995 into main Aug 4, 2022
@palfrey palfrey deleted the dashmap branch August 4, 2022 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant