|
Boost : |
Subject: Re: [boost] Request for a typedef for the larger integer type that supports atomic loads and stores.
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2012-08-18 09:09:13
On Saturday 18 August 2012 14:57:53 Vicente J. Botet Escriba wrote:
> Hi,
>
> I'm locking for a portable integer type that is the larger integer type
> that supports atomic loads and stores.
>
> The sig_atomic_t type defined in <csignal> supports atomic loads and
> stores but I'm not sure is the larger one.
>
> Does boost define such a typedef?
> If not, could such typedef be included in boost and where?
Not exactly what you asked, but Boost.Atomic defines macros that allow to
detect which types can be used in lock-free operations. In C++11, similar
macros are defined in <atomic>.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk