Commit 4dd7b2b
committed
Rewrite internal architecture to be more flexible
The internal scheduling architecture was rewritten:
Instead of using one task per dispatch that will start/stop them,
we now have a queue of events and a timer that is rescheduled
to the earliest next event each time it triggers.
Previously we had to do complicated re-scheduling and cancelling of
tasks, now we always just update the event in the queue.
Signed-off-by: Mathias L. Baumann <[email protected]>1 parent 134ddab commit 4dd7b2b
File tree
3 files changed
+384
-152
lines changed- src/frequenz/dispatch
- tests
3 files changed
+384
-152
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments