Boost Users :
From: Jens Carl (vl01_at_[hidden])
Date: 2022-09-07 18:33:36
On 8/23/22 08:37, Ion GaztaÃ±aga via Boost-users wrote:
>> I looked at code of atomic_cas32() and it uses the legacy built-in
>> Can it be that that built-in isn't supported on ARM?
>> Is there a newer built-in which should be used?
> It could be. Can you test if __atomic_compare_exchange avoids the TSAN
> inline boost::uint32_t atomic_cas32
> Â Â ( volatile boost::uint32_t *mem
> Â Â , boost::uint32_t with, boost::uint32_t cmp)
> Â Â __atomic_compare_exchange
> Â Â Â Â (const_cast<boost::uint32_t*>(mem), &cmp, &with, false
> Â Â Â Â ,__ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST);
> Â Â return cmp;
I changed the code as you suggested, but I still get the same error.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net