[riot-notifications] [RIOT-OS/RIOT] [PoC] core: remove "volatile" from scheduler variables. (#11073)

Marian Buschsieweke notifications at github.com
Mon Mar 18 06:43:33 CET 2019

maribu commented on this pull request.

> @@ -28,7 +28,7 @@
 #define THREAD_NUMOF            (5U)
-extern volatile thread_t *sched_active_thread;
+extern thread_t *sched_active_thread;

I was wrong, there only is [`thread_get(kernel_pid_t pid)`](http://api.riot-os.org/group__core__thread.html#ga754515868f32530baa52ad2d05620205). One could use `thread_get(thread_getpid())`, but would be less efficient. Maybe anothrr static inline function should be added for that use case?

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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190317/7ae76dbe/attachment.html>

More information about the notifications mailing list