On 12 January 2015 at 08:54, Prashant Upadhyaya <[email protected]> wrote: > Hi, > > > > I am migrating my application code from ODP v0.2 to v0.7 > > In v0.2, there used to be a function like the following – > > odp_atomic_cmpset_u32 > > > > How do I realize the above in v0.7 ? It was decided that the atomic operations not related to counters and counting should be kept internal. So there is a header file odp_atomic_internal.h (at least in the linux-generic implementation of ODP). Here is a function _odp_atomic_u32_cmp_xchg_strong_mm() defined. You will have to specify the memory model (or memory order), e.g. _ODP_MEMMODEL_RLX (relaxed) or _ODP_MEMMODEL_SC (sequential consistency).
> > > > Regards > > -Prashant > > > > "DISCLAIMER: This message is proprietary to Aricent and is intended solely > for the use of the individual to whom it is addressed. It may contain > privileged or confidential information and should not be circulated or used > for any purpose other than for what it is intended. If you have received > this message in error, please notify the originator immediately. If you are > not the intended recipient, you are notified that you are strictly > prohibited from using, copying, altering, or disclosing the contents of this > message. Aricent accepts no responsibility for loss or damage arising from > the use of the information transmitted by this email including damage from > virus." > > _______________________________________________ > lng-odp mailing list > [email protected] > http://lists.linaro.org/mailman/listinfo/lng-odp > _______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
