Re: compare_swap method in rtems.

2015-07-27 Thread Gedare Bloom
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 wrote: > Hi, > To avoid data race I nee

compare_swap method in rtems.

2015-07-27 Thread Saurabh Gadia
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@rtems.org http://lists.rtems.org/mailman/listinfo/devel