-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Implement a way to post functions to the main loop #1064
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
Comments
+1! |
* Add mechanism for posting functions to the main loop (#1064) * Fix indentation, add note that API is not stable
Why not make this a library? as it is it will be a burden to any system since it runs in the main outside of the loop. If someone wants this functionality is it so hard to add a call to a library inside the loop to run this? |
Currently the "burden" is one extra function call and one |
It also pulls all the code and space needed for the list of function pointers. It's not a big burden but ram is not so plentiful that it can be completely ignored. I'm not going to press this in any way, it's a design philosophy more than anything else. |
This should provide an easy way to trigger blocking code from interrupts and timers without having to pass events through flags.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: