Boost logo

Boost :

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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk