Subject: Re: [boost] [lockfree] arm / iOS builds against Boost.Atomic
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2013-05-15 01:34:08
On 5/14/2013 11:35 PM, Tim Blechmann wrote:
>> I noticed today when moving my work from OS X / clang / libc++ to iOS /
>> clang / libc++ that Boost.Lockfree must link against libboost_atomic.a to
>> compile. This shouldn't be necessary, since there is std::atomic on iOS as
This is true if you're compiling with -std=gnu++11.
It's possible to compile for iOS without std::atomic being available
with gcc and clang.
The point still stands though, it'd be good to use std::atomic if it's
> i don't have access to this specific toolchain, so it is probably using
> boost::atomic instead of std::atomic ... however please note that
> linking with boost.atomic means that the data structure that you want to
> use is not going to be lock-free, but atomics are emulated via spin locks.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk