$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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.