
5 Apr
2011
5 Apr
'11
11:50 p.m.
On 4/5/2011 4:16 PM, Vicente BOTET wrote:
Message du 06/04/11 00:36 De : "Phil Bouchard"
A : boost@lists.boost.org 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. Thanks, -Phil