Subject: Re: [boost] [atomic] atomic<int>::is_lock_free() returns false on iPad 4 (armv7s)
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-09-06 02:24:20


On Thursday 05 September 2013 18:07:27 Taylor Holliday wrote:
> Hi,
>
> boost:atomic<int>::is_lock_free() returns false on iPad 4 (armv7s) but
> returns true on iPad 3 (armv7). Is this expected or did I build boost
> incorrectly?

Most of Boost.Atomic code is header-only, so the problem is not related to
building Boost.

I suppose, noone added detection for the armv7s target because noone knows how
to detect it at compile time. If you could provide a compiler predefined macro
that can be used for this purpose, we could add the support.