Boost logo

Boost :

From: Philippe A. Bouchard (philippeb_at_[hidden])
Date: 2003-11-13 21:40:09


Alexander Terekhov wrote:
> "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

Wow, this is great... Benchmarking everything would be even greater.

Philippe


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