Subject: Re: [boost] [interprocess] (OS X) waiting on condition variable = CPU 100% + fans running loud
From: Peter Dimov (lists_at_[hidden])
Date: 2013-01-08 12:10:34
Tim Blechmann wrote:
> >>> Clang has std::atomic though, doesn't it? It probably supports the
> >>> > > __sync intrinsics as well.
> >> >
> >> > Actually, it seems to support the even better __atomic intrinsics:
> >> >
> >> > http://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
> > Also here: http://libcxx.llvm.org/atomic_design_a.html
> that's libcxx, which is not available on osx before 10.7 ...
The header <atomic> is part of libc++, but the intrinsics are not. It seems
that they have been renamed to have a __c11 prefix though. No idea if the
old names still work, or if the intrinsics work in C++03 mode.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk