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-12 14:06:36


On January 12, 2013 9:57:22 PM "Vicente J. Botet Escriba"
<vicente.botet_at_[hidden]> wrote:
> What I was asking for is just a
> patch to ensure that
>
> typedef unsigned long uintmax_atomic_t;
>
> is atomic in all platforms.

One more note. Is your idea to have a typedef for an integer type that
is guaranteed to be supported by atomic ops across all platforms? If
so, I don't think this is feasible. Most architectures support atomic
ops on 32 bit operands but that is still not a general solution.


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