Re: "cheap", RT-safe way of detecting if a thread is Xenomai or Linux

2019-01-14 Thread Julien Blanc via Xenomai
Le dimanche 13 janvier 2019 à 02:33 +, Giulio Moro via Xenomai a écrit : > 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 >

Re: "cheap", RT-safe way of detecting if a thread is Xenomai or Linux

2019-01-13 Thread Giulio Moro via Xenomai
> What is the use case of this query? I am trying to write some C++ classes to wrap `pthread_mutex_...` and `pthread_cond_...` in such a way that the caller does not need to be aware of Xenomai. It would be up to the wrapping class to check whether it is being called by a Xenomai thread and

Re: "cheap", RT-safe way of detecting if a thread is Xenomai or Linux

2019-01-12 Thread Jan Kiszka via Xenomai
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

"cheap", RT-safe way of detecting if a thread is Xenomai or Linux

2019-01-12 Thread Giulio Moro via Xenomai
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