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

Francisco notifications at github.com
Tue Sep 28 10:51:17 CEST 2021


@fjmolinas commented on this pull request.



> +    }
+}
+
+int main(void)
+{
+    {
+        static char stack[THREAD_STACKSIZE_DEFAULT];
+        static uint32_t workness = 3;   /* 0-10 workness*/
+        thread_create(stack, sizeof(stack), 7, THREAD_CREATE_STACKTEST,
+                      thread_restless, &workness, "T1");
+    }
+    {
+        static char stack[THREAD_STACKSIZE_DEFAULT];
+        static uint32_t workness = 5;   /* 0-10 workness*/
+        thread_create(stack, sizeof(stack), 7, THREAD_CREATE_STACKTEST,
+                      thread_restless, &workness, "T2");

Can we use MACROS for how thsese are assigned and warp them in:

```
#ifndef   FIRST_THREAD_HANDLER
#define  FIRST_THREAD_HANDLER  thread_restless
#endif 
```

That way I could change the application behaviour with CFLAGS and overrriding the behaviour.

-- 
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#pullrequestreview-765154885
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210928/8a254224/attachment.htm>


More information about the notifications mailing list