Do you still want to use the alchemy API? rt_task_shadow is still available in Xenomai 3
-Greg On Wed, Apr 4, 2018 at 3:37 PM, Giulio Moro <g.m...@qmul.ac.uk> wrote: > On Xenomai 2.6, native API, I used to run > > rt_task_shadow(&thisTask, threadName, threadPriority, T_JOINABLE | T_FPU); > > Now I am using Cobalt on Xenomai 3 and I am looking for a drop-in replacement. > > Going through the source of alchemy.c, copperplate/internal.c and > cobalt/thread.c, it seems that rt_task_shadow() now is implemented by calling > > pthread_setschedparam_ex(pthread_self(), SCHED_FIFO, ¶m_ex) > > where sched_param_ex param_ex.sched_priorirty = threadPriority > > Is that all that is needed to turn the current thread into a Xenomai thread > of priority threadPriority? > Perhaps followed by > __wrap_pthread_setname_np(pthread_self(), taskName); > ? > > Thanks, > Giulio > _______________________________________________ > Xenomai mailing list > Xenomai@xenomai.org > https://xenomai.org/mailman/listinfo/xenomai _______________________________________________ Xenomai mailing list Xenomai@xenomai.org https://xenomai.org/mailman/listinfo/xenomai