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

Add single-threaded deadlock detection to RwMutex #1619

Merged
merged 2 commits into from May 21, 2022
Merged

Conversation

emilk
Copy link
Owner

@emilk emilk commented May 11, 2022

Closes #1560

It only works for single-threaded environments (double-locking the same RwLock on the same thread), but it was what helped me find the problem in #1618

It slows down the app a lot, but at least on my mac it is fast enough to be interacted with, so if your app freezes you can recompile with the deadlock_detection feature and try to reproduce.

@emilk emilk marked this pull request as ready for review May 21, 2022 12:08
@emilk emilk merged commit d6fd5de into master May 21, 2022
@emilk emilk deleted the deadlock-detection branch May 21, 2022 12:08
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.

Deadlock detection
1 participant