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

Kaspar Schleiser notifications at github.com
Mon Mar 18 10:25:13 CET 2019


kaspar030 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;

> One could use `thread_get(thread_getpid())`, but would be less efficient. Maybe anothrr static inline function should be added for that use case?

+1 for another function. Maybe ```thread_get_current()```? That would be a nice PR of its own.

-- 
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/11073#discussion_r266351557
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190318/c6e7aeb1/attachment.html>


More information about the notifications mailing list