
27 Sep
2010
27 Sep
'10
11:03 a.m.
"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.