Basic work queue
All threads resolved!
All threads resolved!
This implements a basic work queue for background tasks.
It is extremely simple. If we want to we can extend it later (e.g. more workers).
Also moves the periodic light sensor ADC reading from a timer context to the work queue.
Merge request reports
Activity
added 2 commits
- Resolved by schneider
I love it, this is great and something we should have added a long time ago! I have two things:
- I think the stack size for the workqueue should be a bit bigger by default to prevent nasty surprises in the future ...
- How should we prioritize the workqueue task? Does this even matter for the current uses? I was thinking that maybe it needs to inherit the calling tasks priority while processing a job. Or is this overkill for now?
added 2 commits
added 2 commits
mentioned in commit f356b12b
Please register or sign in to reply