Usage of POSIX keys instead of task variables

Joel Sherrill Joel.Sherrill at OARcorp.com
Tue Mar 18 12:51:22 UTC 2014


On Mar 18, 2014 5:35 AM, Christian Mauderer <Christian.Mauderer at embedded-brains.de> wrote:
>
> Hello,
>
> I've planed to work on using POSIX keys instead of task variables in
> the shell, the gxx_wrappers and rtems_rpc. This should makes it
> possible to use the mentioned modules with SMP.
>
> There is a small section in the Wiki regarding this topic:
> http://www.rtems.org/wiki/index.php?title=SMP#Task_Variables
>
> The POSIX keys are already outside the POSIX-API. To use them
> efficiently the function pthread_once is also necessary. Sebastian
> already sent a patch to make this function available for all
> configurations.
>
> My first step will be to extract the test for pthread_once out of the
> psx01 test so that it can build independent of the POSIX-API.

Without looking at the test, I suspect the once cases can simply be moved into a new test without trouble.

> After this the next steps will be to replace the task variables in the
> mentioned modules.

Good. I went on a hunt to eliminate rtems_bsp_delay() and didn't make any progress on this front.

> Kind regards
>
> Christian Mauderer
>
> --
> --------------------------------------------
> embedded brains GmbH
> Christian Mauderer     Dornierstr. 4
> D-82178 Puchheim       Germany
> email: Christian.Mauderer at embedded-brains.de
> Phone: +49-89-18 94 741-18
> Fax:   +49-89-18 94 741-08
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20140318/f033702d/attachment-0001.html>


More information about the devel mailing list