diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-09-11 15:40:33 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-09-11 15:40:33 +0200 |
| commit | e1209c5563576d18c4d033b015c9a5dd6145d581 (patch) | |
| tree | 431aa79f8343a7ed8eb948ad52dec5ef13f5869a /embassy-executor/src/raw/run_queue.rs | |
| parent | 2e21dcf2e61440db8c56a421a87c7a6bd22424d0 (diff) | |
executor: make Deadline actually private.
Diffstat (limited to 'embassy-executor/src/raw/run_queue.rs')
| -rw-r--r-- | embassy-executor/src/raw/run_queue.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/embassy-executor/src/raw/run_queue.rs b/embassy-executor/src/raw/run_queue.rs index 29c977226..d98c26f73 100644 --- a/embassy-executor/src/raw/run_queue.rs +++ b/embassy-executor/src/raw/run_queue.rs | |||
| @@ -108,12 +108,8 @@ impl RunQueue { | |||
| 108 | /// runqueue are both empty, at which point this function will return. | 108 | /// runqueue are both empty, at which point this function will return. |
| 109 | #[cfg(feature = "scheduler-deadline")] | 109 | #[cfg(feature = "scheduler-deadline")] |
| 110 | pub(crate) fn dequeue_all(&self, on_task: impl Fn(TaskRef)) { | 110 | pub(crate) fn dequeue_all(&self, on_task: impl Fn(TaskRef)) { |
| 111 | let mut sorted = SortedList::<TaskHeader>::new_with_cmp(|lhs, rhs| { | 111 | let mut sorted = |
| 112 | lhs.metadata | 112 | SortedList::<TaskHeader>::new_with_cmp(|lhs, rhs| lhs.metadata.deadline().cmp(&rhs.metadata.deadline())); |
| 113 | .deadline() | ||
| 114 | .instant_ticks() | ||
| 115 | .cmp(&rhs.metadata.deadline().instant_ticks()) | ||
| 116 | }); | ||
| 117 | 113 | ||
| 118 | loop { | 114 | loop { |
| 119 | // For each loop, grab any newly pended items | 115 | // For each loop, grab any newly pended items |
