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

Remove deadlock - use single mutex in PersistenceManager #240

Merged
merged 1 commit into from
Sep 15, 2021

Conversation

zdenek-jonas
Copy link
Contributor

@zdenek-jonas zdenek-jonas commented Sep 10, 2021

Unfortunately, the same resources are used as lock in both methods, so deadlock may occur. Therefore replaced by only one mutex. Tested, the most common deadlock is removed. I have not shown any performance impact even after long tests.

@zdenek-jonas zdenek-jonas requested review from fh-ms and hg-ms September 10, 2021 08:37
@zdenek-jonas zdenek-jonas requested a review from fh-ms September 15, 2021 08:09
@zdenek-jonas zdenek-jonas merged commit 09817d6 into master Sep 15, 2021
@zdenek-jonas zdenek-jonas deleted the remove_deadlock branch September 15, 2021 09:03
@fh-ms fh-ms added this to the 06.00.00 milestone Sep 16, 2021
@fh-ms fh-ms changed the title remove deadlock- make synchronized the whole block. Remove deadlock - use single mutex in PersistenceManager Sep 16, 2021
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