On 02/09/2018 03:14 PM, Henning Schild wrote:
> Hi,
> 
> 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.

-- 
Philippe.

_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai

Reply via email to