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

Fix thread-mode executor on core1 not waking up #2924

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

bugadani
Copy link
Contributor

@bugadani bugadani commented Jan 9, 2025

Found while testing #2701 - apparently this is an unrelated issue :) Bug was caused by SoftwareInterrupt::set_interrupt_handler which when called, disabled the interrupt handler on the "other" core. This meant that creating a handler on both cores ended up with only one of them handling the cross-core interrupt.

Now the interrupt is registered once, then enabled on only the core(s) that need it.

@bugadani bugadani force-pushed the executor branch 2 times, most recently from 3873c94 to 2d17ee3 Compare January 9, 2025 17:47
Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, thanks!

@bugadani bugadani added this pull request to the merge queue Jan 10, 2025
Merged via the queue into esp-rs:main with commit 8fad943 Jan 10, 2025
28 checks passed
@bugadani bugadani deleted the executor branch January 10, 2025 12:55
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.

3 participants