Re: [Xenomai] [PATCH 0 of 2] Xenomai-forge thread_obj: unset __THREAD_S_SAFE when not needed

2013-10-20 Thread Philippe Gerum
On 10/19/2013 08:42 PM, Ronny Meeus wrote: test code snippet: static void test_task(u_long a,u_long b,u_long c,u_long d) { while (1) tm_wkafter(1000); } static void main_task(u_long a,u_long b,u_long c,u_long d) { u_long tid,args[4] = {0,0,0,0};

Re: [Xenomai] [PATCH 0 of 2] Xenomai-forge thread_obj: unset __THREAD_S_SAFE when not needed

2013-10-19 Thread Ronny Meeus
test code snippet: static void test_task(u_long a,u_long b,u_long c,u_long d) { while (1) tm_wkafter(1000); } static void main_task(u_long a,u_long b,u_long c,u_long d) { u_long tid,args[4] = {0,0,0,0}; int i; char name[32]; for (i=0;i256;i++) { printf(counter

[Xenomai] [PATCH 0 of 2] Xenomai-forge thread_obj: unset __THREAD_S_SAFE when not needed

2013-10-18 Thread Kim De Mey
Hello list, I believe that there is a problem in xenomai-forge when you create tasks from within another task and the newly created tasks have a lower priority than the priority of the task where you created them from. In the threadobj_start() function the thobj-status is set to

Re: [Xenomai] [PATCH 0 of 2] Xenomai-forge thread_obj: unset __THREAD_S_SAFE when not needed

2013-10-18 Thread Philippe Gerum
On 10/18/2013 02:50 PM, Kim De Mey wrote: Hello list, I believe that there is a problem in xenomai-forge when you create tasks from within another task and the newly created tasks have a lower priority than the priority of the task where you created them from. In the threadobj_start() function

Re: [Xenomai] [PATCH 0 of 2] Xenomai-forge thread_obj: unset __THREAD_S_SAFE when not needed

2013-10-18 Thread Kim De Mey
2013/10/18 Philippe Gerum r...@xenomai.org On 10/18/2013 02:50 PM, Kim De Mey wrote: Hello list, I believe that there is a problem in xenomai-forge when you create tasks from within another task and the newly created tasks have a lower priority than the priority of the task where you