Skip to content

Don't let a background task call run_background_tasks() #1773

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

Merged
merged 1 commit into from
Apr 10, 2019

Conversation

dhalbert
Copy link
Collaborator

This PR prevents recursive calls to run_background_tasks().

In the nrf port, the filesystem flush code was setting the on-board NeoPixel. This code is often called from the background. The NeoPixel code has a long wait in it, and it runs background code while waiting. So background code was calling background code on the nrf port. This caused a debug build to hang up or run very slowly, and possibly had performance impacts on the regular build as well.

@dhalbert dhalbert requested a review from tannewt April 10, 2019 00:40
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

@tannewt tannewt merged commit ac2fd2f into adafruit:master Apr 10, 2019
@dhalbert dhalbert deleted the no-recursive-background-tasks branch May 28, 2019 13:26
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