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 <[email protected]> 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
> [email protected]
> http://lists.rtems.org/mailman/listinfo/devel
_______________________________________________
devel mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to