"cheap", RT-safe way of detecting if a thread is Xenomai or Linux
g.moro at qmul.ac.uk
Sun Jan 13 03:33:04 CET 2019
is there a "cheap", RT-safe call that can be made in order to find out if the current thread is a Xenomai thread or a Linux thread? Also, to detect whether the Xenomai thread is in primary or secondary mode?
It seems that cobalt_thread_mode() gives some (all?) of these details. Is it RT-safe? How much overhead does it incur? Is it the recommended way?
More information about the Xenomai