Boost logo

Boost :

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 list run by bdawes at, gregod at, cpdaniel at, john at