Boost logo

Boost :

Subject: Re: [boost] [thread] Can Boost.Thread use Boost.Atomic without falling on a compatibility issue?
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-01-13 11:15:14

On Sunday 13 January 2013 16:08:28 Vicente J. Botet Escriba wrote:
> Could you work on complementing your patch to take care of the C++11
> interface?

I have updated the patch in the ticket #5752 with the C++11 definition of
atomic_flag. Note that the new patch disables the
BOOST_THREAD_PROVIDES_ONCE_CXX11 macro when constexpr is not available.

The patch also adds some heuristic code for detecting an atomic-compatible
integer type to even better avoid using the spinlock pool of Boost.Atomic.

The modified files are attached as well. These are
boost/thread/pthread/once.hpp, boost/thread/detail/config.hpp and

Boost list run by bdawes at, gregod at, cpdaniel at, john at