[riot-notifications] [RIOT-OS/RIOT] sys/sched_rr: Add a round robin scheduler module (#16126)
notifications at github.com
Thu Apr 8 14:58:21 CEST 2021
@kfessel commented on this pull request.
+ * @brief count the number of threads in a runqueue up to 2
+ * @param[in] prio the priority of the runqueue to get the length from
+ * @returns number of threads in a runqueue up to 2
+ * @retval 0 The runqueue is empty
+ * @retval 1 There is exactly one thread in the runqueue
+ * @retval 2 There are at least two threads in the runqueue
+ * @warning This API is not intended for out of tree users.
+ * Breaking API changes will be done without notice and
+ * without deprecation. Consider yourself warned!
+static inline uint_fast8_t sched_runqueue_len2(uint8_t prio)
a first test showed that a simple capped variant of `clist_count_upto(` generates more code with -Og (native).
since i also still would need some thing like:
static inline uint_fast8_t sched_runqueue_len2_bob(uint8_t prio)
i stop my test right now
i did test with an L073 -both variants generated the same code size
so if clist is in need for this feature i will port it move it and would use the sched_rq_len2 you see above this
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications