Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-05-24 11:43:52

Kobi Cohen-Arazi wrote:
> Hi
> As far as we know, boost::shared_ptr has a locking overhead when
> inc/dec is invoked.
> I wonder:
> 1. Is it using atomic op?

It depends on the platform.

> 3. What can we do in order to be able to use shared_ptr without that
> overhead?


> 2. Why Alexandrescu policy based shared_ptr was rejected?

A policy-based smart pointer never got to the "formal review" stage. David
Held was very close to submitting one and has made a formal review request:

but I don't remember what happened. Maybe he pulled it. However the Loki
version is, I believe, actively maintained.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at