Re: [Xenomai-core] Fwd: Re: rt_task_delete doesn't work

2011-06-15 Thread Gilles Chanteperdrix
On 06/14/2011 01:59 PM, Roberto Bielli wrote: > > > Here is the example and the command. > > RT_TASK pippo; > RT_TASK pluto; > > void test1() > { > int err; > > err = rt_task_delete(&pippo ); > if( err != 0 ) > printf("error task delete\n"); > > } > > int main (int ar

Re: [Xenomai-core] Fwd: Re: rt_task_delete doesn't work

2011-06-15 Thread Roberto Bielli
the tasks has not the same rt_task. One it's a create, one is a start. Il 14/06/2011 18:27, Cagnulein ha scritto: err = rt_task_create(&pluto, namePluto, 0x2000, 20, T_FPU ); if( err != 0 ) printf("error task create %s\n", namePluto ); err = rt_task_start(&pluto, (

Re: [Xenomai-core] Fwd: Re: rt_task_delete doesn't work

2011-06-14 Thread Cagnulein
> err = rt_task_create(&pluto, namePluto, 0x2000, 20, T_FPU ); > if( err != 0 ) > printf("error task create %s\n", namePluto ); > > err = rt_task_start(&pluto, (void *)test1, NULL ); You've created 2 tasks with the same RT_TASK variable. Is it volunteer? Roberto Viola > >