[riot-notifications] [RIOT-OS/RIOT] sys/event: Allow single event_thread handling all queues (#15471)

benpicco notifications at github.com
Sun Nov 29 21:50:43 CET 2020


@benpicco commented on this pull request.



>  
 void auto_init_event_thread(void)
 {
-    for (unsigned i = 0; i < ARRAY_SIZE(_event_threads); i++) {
-        event_thread_init(_event_threads[i].queue,
-                _event_threads[i].stack, _event_threads[i].stack_size,
-                _event_threads[i].priority);
+    if (IS_USED(MODULE_EVENT_THREAD_HIGHEST)) {
+        event_thread_init(EVENT_PRIO_HIGHEST,
+                          _evq_highest_stack, sizeof(_evq_highest_stack),
+                          EVENT_THREAD_HIGHEST_PRIO);
+    }
+    if (IS_USED(MODULE_EVENT_THREAD_MEDIUM)) {

```suggestion
    if (IS_USED(MODULE_EVENT_THREAD_LOWEST)) {
```

-- 
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/15471#pullrequestreview-540515380
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201129/a1aae342/attachment-0001.htm>


More information about the notifications mailing list