On 13.01.19 10:33, Giulio Moro via Xenomai wrote:
Hi all,
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?
What is the use case of this query? Debugging purposes? We expose APIs for the
latter (e.g. cobalt_assert_nrt(), typically only called by internal wrappers)
but we are intentionally not proposing them for production purposes.
Jan