$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2007-09-06 10:40:10
On 9/5/07, Peter Dimov <pdimov_at_[hidden]> wrote:
>
> To answer your question: no, a mere swap instruction is not enough for
> shared_ptr, it needs atomic increment, decrement and compare and swap.
>
Of course, incr and decr can be built from CAS.
Tony