[Xenomai] calling xenomai_init multiple times ...
rpm at xenomai.org
Fri Feb 9 15:18:40 CET 2018
On 02/09/2018 03:14 PM, Henning Schild wrote:
> we have been seeing several issues with calling xenomai_init multiple
> times for the same skin. Once it was a segfault and another time was an
> issue related to the registry.
> I want to come up with patches for both cases, but i would like to
> understand how it is supposed to work.
> My guess is that all the stuff in boilerplate/setup.c is not
> thread-safe and should not be called more than once. And we have
> multiple dlopen() calls from multiple threads, so might end up calling
> things multiple times and at the same time.
> So what are the assumptions on, threading and amount of calls to the
> init functions?
Multiple calls allowed, definitely not thread-safe.
More information about the Xenomai