Skip to content

Bugfix: wait_for_tasks should handle spurious wakeups#75

Merged
ptsouchlos merged 1 commit intoptsouchlos:masterfrom
willkill07:bugfix-wait_for_tasks
Dec 10, 2024
Merged

Bugfix: wait_for_tasks should handle spurious wakeups#75
ptsouchlos merged 1 commit intoptsouchlos:masterfrom
willkill07:bugfix-wait_for_tasks

Conversation

@willkill07
Copy link
Contributor

atomic waits are subject to spurious wakeups.

This PR ensures the logic in wait_for_tasks truly waits for the threads_complete_signal_ to be false.

@ptsouchlos
Copy link
Owner

Thanks for this!

@ptsouchlos ptsouchlos merged commit 2f75b94 into ptsouchlos:master Dec 10, 2024
12 checks passed
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