Subject: Re: [boost] [shifted_ptr] Review Request
From: Phil Bouchard (philippe_at_[hidden])
Date: 2011-04-05 19:50:38
On 4/5/2011 4:16 PM, Vicente BOTET wrote:
>> Message du 06/04/11 00:36
>> De : "Phil Bouchard"
>> A : boost_at_[hidden]
>> Copie Ã :
>> Objet : Re: [boost] [shifted_ptr] Review Request
>> A smart pointer object has the count of the number of pointers pointing
>> to the object. shifted_ptr<> also has a set counter; a set counter has
>> the count of the number of pointers from the stack referencing to the
>> set. Thus when no pointers from the stack are referencing the set
>> anymore then the set is being destroyed instantly.
> Are shifted_ptrs thread safe?
The pools it uses are thread safe and so is the reference count but the
manipulation of a set hasn't been tested yet in a multithreaded environment.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk