Skip to content

Avoid unnecessarily held lock in backlog_population#4126

Merged
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:prs/fix-backlog-population-lock
Feb 14, 2023
Merged

Avoid unnecessarily held lock in backlog_population#4126
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:prs/fix-backlog-population-lock

Conversation

@pwojcikdev
Copy link
Copy Markdown
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