[riot-notifications] [RIOT-OS/RIOT] [PoC] core: remove "volatile" from scheduler variables. (#11073)
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)
#define THREAD_FIRSTGROUP_NUMOF (3U)
-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...
More information about the notifications