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

Avoid unnecessarily held lock in backlog_population #4126

Merged

Conversation

pwojcikdev
Copy link
Contributor

Waits by calling condition.wait_for. This also helps with reacting to a stopped condition faster. Dealing with spurious wakeups is ignored, because it's not really a concern here.

@pwojcikdev pwojcikdev merged commit 96aa938 into nanocurrency:develop Feb 14, 2023
@pwojcikdev pwojcikdev deleted the prs/fix-backlog-population-lock branch February 14, 2023 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants