Skip to content

Commit

Permalink
fixup! refactor(threads): avoid unnecessary scheduler invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
elenaf9 authored Oct 10, 2024
1 parent 2bb11bc commit b52846c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/riot-rs-threads/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ impl Threads {
}
}

/// Triggers the scheduler if the thread has higher priority than the current running thread.
/// Triggers the scheduler if the thread has a higher priority than the currently running thread.
fn schedule_if_higher_prio(&mut self, _thread_id: ThreadId, prio: RunqueueId) {
match self.current().map(|t| t.prio) {
Some(curr_prio) if curr_prio < prio => schedule(),
Expand Down

0 comments on commit b52846c

Please sign in to comment.