From b52846ce935ab40c254ead82dbc83948652bf0aa Mon Sep 17 00:00:00 2001 From: Elena Frank Date: Thu, 10 Oct 2024 11:54:20 +0200 Subject: [PATCH] fixup! refactor(threads): avoid unnecessary scheduler invocations --- src/riot-rs-threads/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/riot-rs-threads/src/lib.rs b/src/riot-rs-threads/src/lib.rs index d5cc58e4a..7de6111f0 100644 --- a/src/riot-rs-threads/src/lib.rs +++ b/src/riot-rs-threads/src/lib.rs @@ -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(),