compare_swap method in rtems.

Gedare Bloom gedare at gwu.edu
Mon Jul 27 15:48:16 UTC 2015


Have a look at cpukit/score/include/rtems/score/atomic.h around line
139 and also usage at testsuites/sptests/spatomic01/init.c around line
200. Different types are available depending on what you need to cas.

On Mon, Jul 27, 2015 at 11:43 AM, Saurabh Gadia <gadia at usc.edu> wrote:
> Hi,
> To avoid data race I need cmp_swap(). So is there some implementation in
> java to imitate that. And for rtems which method we use for that?
>
> Thanks,
>
> Saurabh Gadia
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel



More information about the devel mailing list