Boost logo

Boost :

Subject: Re: [boost] [Atomic] Confusion about Atomicaty of atomic::exchange.
From: Peter Dimov (pdimov_at_[hidden])
Date: 2010-09-27 07:03:50


"cexer" wrote:

> Then thread1 arrives code B, because at this moment o! = i, calling to
> compare_exchnage_weak will fail, atomic::exchange them will went into
> infinite loop, this is terrible. I know I must missing something here, so
> I posting here, expecting that someone could please remind me a little
> bit?

compare_exchange_weak updates o.
 


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