Steven Seeger wrote: > Gilles, > > Attached is my simple test that repeats this problem. > > Output is: > > 0 > 0 0 > > This is using latest xenomai trunk. >
Ok. Try this: Index: src/skins/native/task.c =================================================================== --- src/skins/native/task.c (revision 4570) +++ src/skins/native/task.c (working copy) @@ -210,8 +210,12 @@ int rt_task_shadow(RT_TASK *task, const err = XENOMAI_SKINCALL2(__native_muxid, __native_task_create, &bulk, NULL); - if (!err) + if (!err) { +#ifdef HAVE___THREAD + __native_self = *task; +#endif /* HAVE___THREAD */ xeno_set_current(); + } return err; } -- Gilles. _______________________________________________ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help