Boost logo

Boost :

From: williamkempf_at_[hidden]
Date: 2001-07-04 13:58:44

--- In boost_at_y..., Chandrasekhar.KG_at_d... wrote:
> Hi,
> This is what I read on the boost mailing list a while ago..
> "An example: shared_ptr has long needed a thread-safe counter, and
it makes
> sense to parameterize shared_ptr on the counter type. I suspect
the Boost
> thread-safe counter will serve most users fine, but we can't
> every kind of system shared_ptr might be used in, so we can't
> every kind of counter that might be needed."
> Can you please tell me whether the shared_ptr implementation thread-
> now

No, since we didn't have a portable way to do such a thing.

>.. or is it being planned to make it thread safe??..

Yes. Once Boost.Threads is accepted (assuming it will be) we'll have
thread synchronization primitives that are portable and can be used
to make shared_ptr<> thread safe.
> Please excuse me if I am asking a question that was posted before..
but I
> could not find an answer to my query from the mail archives..

It's there, though no one asked this specific question so a search
would probably be difficult to do.

Bill Kempf

Boost list run by bdawes at, gregod at, cpdaniel at, john at