[riot-notifications] [RIOT-OS/RIOT] core/thread: Allow for inline thread_yield_higher (#15788)

Koen Zandberg notifications at github.com
Tue Jan 19 21:40:47 CET 2021


@bergzand commented on this pull request.



> +static inline __attribute__((always_inline)) void thread_yield_higher(void)
+{
+    if (irq_is_in()) {
+        sched_context_switch_request = 1;
+    }
+    else {
+        __asm__("svc 0\n");
+    }
+}

Thanks, removed!

-- 
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/15788#discussion_r560481413
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210119/4a0f25a1/attachment.htm>


More information about the notifications mailing list