$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-03-11 15:11:13
Mathias Gaunard:
> Peter Dimov wrote
>> Mathias Gaunard:
>>
>>> I see that shared_ptr is quite costly in multithreaded environments
>>> cause it would need DCAS, and thus uses a spinlock in cases where it is
>>> not available.
>>
>> Where do you see that? It's not true.
>
> AFAIK, the current shared_ptr is not lock-free at all.
It is lock-free on most platforms. Look at the code, particularly
boost/detail/sp_counted_base*.hpp.