passing parameters to task
Luca Cinquepalmi
cinquepalmi at planetek.it
Mon Sep 17 10:20:28 UTC 2012
I understand your suggestion... is there any example I could view?
Luca
Il 17/09/2012 12.18, Mathew Benson ha scritto:
> The same way you would with a POSIX pthread create call. Just malloc
> a struct with your multiple parameters, set your parameters, and pass
> the reference of your struct to the function. In your task entry
> point, cast the argument to a pointer to your struct and pull your
> parameters out.
>
> Sent from my Amiga 1000
>
> On Sep 17, 2012, at 4:35 AM, Luca Cinquepalmi <cinquepalmi at planetek.it
> <mailto:cinquepalmi at planetek.it>> wrote:
>
>> Hi all,
>> I would like to know if is it possible to pass more than one argument
>> to a single task...
>> At the moment I only use this syntax when I define a task
>>
>> *rtems_task Test_task(rtems_task_argument unused)*
>>
>> How can I declare and define a more parameters dependent task?
>> Thanks a lot.
>>
>> Luca
>>
>>
>>
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.org <mailto:rtems-users at rtems.org>
>> http://www.rtems.org/mailman/listinfo/rtems-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20120917/ce4e4fd5/attachment-0001.html>
More information about the users
mailing list