Boost logo

Boost :

Subject: Re: [boost] [interprocess] (OS X) waiting on condition variable = CPU 100% + fans running loud
From: Phil Endecott (spam_from_boost_dev_at_[hidden])
Date: 2013-01-08 13:15:58


Andrey Semashev <andrey.semashev_at_[hidden]> wrote:
> On Tue, Jan 8, 2013 at 7:50 PM, Ion Gazta?aga <igaztanaga_at_[hidden]> wrote:
>>
>> I read from Boost.Atomic documentation that supported platforms are:
>>
>> - gcc 4.x: i386, x86_64, ppc32, ppc64, armv5, armv6, alpha

ARMv7 is also supported.

>> - Visual Studio Express 2008/Windows XP, i386
>>
>> That seems a bit limited unless under "GCC" we have several compilers
>> compatible with GCC and MSVC (maybe Intel, Clang, Freescale? etc.).
>
> In case of gcc inline assembler is used, which is also supported by
> Intel but not clang.

> I'm not
> sure what solution is suitable for clang as I don't know if it
> supports any intrinsics and apparently it won't support inline
> assembler any time soon.

It seems to me that clang does support gcc inline assembler; I'm using
Boost.Atomic on iOS, and also shared_ptr<> on top of Boost.Atomic, and
it works as expected. Why do you believe that clang doesn't support
inline assembler?

Phil.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk