[riot-notifications] [RIOT-OS/RIOT] sys/sched_rr: Add a round robin scheduler module (#16126)

Karl Fessel notifications at github.com
Thu Apr 8 15:07:59 CEST 2021


@kfessel commented on this pull request.



> @@ -220,6 +224,19 @@ void sched_set_status(thread_t *process, thread_status_t status)
             clist_rpush(&sched_runqueues[process->priority],
                         &(process->rq_entry));
             _set_runqueue_bit(process);
+
+            /* some thread entered a runqueue
+             * if it is the active runqueue
+             * inform the runqueue_change callback */
+            /* might be more efficient to check using

the matching if would be `if(_get_prio_queue_from_runqueue() == process->priority)` (that one does not ensure there is something active right now contrary to the statement used right now)


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16126#discussion_r609679403
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210408/cf70d881/attachment-0001.htm>


More information about the notifications mailing list