Skip to content

Fix closing of SharedMutex #14

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

Merged
merged 2 commits into from
Sep 7, 2023
Merged

Fix closing of SharedMutex #14

merged 2 commits into from
Sep 7, 2023

Conversation

rkistner
Copy link
Contributor

@rkistner rkistner commented Sep 4, 2023

If SharedMutex.close() was called while existing locks were open, it could prevent those locks from ever being released. This fixes it.

There aren't any known cases of this with default usage of this library, but it could happen when using Mutex/SharedMutex directly.

@rkistner rkistner merged commit 08495cf into main Sep 7, 2023
@rkistner rkistner deleted the fix-sharedmutex-close branch September 7, 2023 13:53
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.

2 participants