$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2003-11-13 05:20:32
"Philippe A. Bouchard" wrote:
>
> Hi there Boosters,
>
> I have discussed a little about the actual s*_ptr design and I got asked
> why the mutex inside the counted_base couldn't be used externaly to lock the
> object as well as the counter.
You don't really need to have a mutex inside counted_base.
refcount<> is the way to go.
http://terekhov.de/pthread_refcount_t/experimental/refcount.cpp
http://groups.google.com/groups?selm=3EC0F1F1.B78AA0DA%40web.de
regards,
alexander.