$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-05-27 06:24:22
Trevor Taylor wrote:
>
> Why wait? With so many people contributing to boost, why not
> introduce a pthread_refcount_t into into boost threads (or is there
> one already?), provide a default implementation equivalent to what
> shared_ptr does now,
We can't; shared_ptr uses a single pthread_mutex to protects its two counts.
A naive pthread_mutex based pthread_refcount_t would result in two mutexes,
one per count.
> and let the platform experts provide the optimal specialisations.