[Xenomai-core] Antwort: Re: Arguments in psos t_start()

2007-05-09 Thread Markus Osterried
Hello Gerum, sorry for not knowing the details. But there is another question. Is it okay to move the pointer to the arguments to the newly created task? Isn't it possible that the task which created the new task is rescheduled? The old task could change the value of the argument and because the

Re: [Xenomai-core] Antwort: Re: Arguments in psos t_start()

2007-05-09 Thread Philippe Gerum
On Wed, 2007-05-09 at 09:07 +0200, Markus Osterried wrote: Hello Gerum, sorry for not knowing the details. But there is another question. Is it okay to move the pointer to the arguments to the newly created task? Isn't it possible that the task which created the new task is rescheduled? The

[Xenomai-core] Antwort: Re: Antwort: Re: Arguments in psos t_start()

2007-05-09 Thread Markus Osterried
Hello Gerum, actually, when the task's user function (the function which is given in t_start()) is entered, the arguments have been copied to the new context and are passed by value. This is true for real pSOS and also for Xenomai. But in Xenomai it's the trampoline which acts as a

Re: [Xenomai-core] Antwort: Re: Antwort: Re: Arguments in psos t_start()

2007-05-09 Thread Philippe Gerum
On Wed, 2007-05-09 at 11:57 +0200, Markus Osterried wrote: Hello Gerum, actually, when the task's user function (the function which is given in t_start()) is entered, the arguments have been copied to the new context and are passed by value. This is true for real pSOS and also for Xenomai.