summaryrefslogtreecommitdiff
path: root/supervisor/background_callback.h
AgeCommit message (Collapse)Author
2020-07-17background_callback: Add gc collect callbackJeff Epler
A background callback must never outlive its related object. By collecting the head of the linked list of background tasks, this will not happen. One hypothetical case where this could happen is if an MP3Decoder is deleted while its callback to fill its buffer is scheduled.
2020-07-15supervisor: Add a linked list of background callbacksJeff Epler
In time, we should transition interrupt driven background tasks out of the overall run_background_tasks into distinct background callbacks, so that the number of checks that occur with each tick is reduced.