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