Subject: Re: [boost] [smart_ptr] shared_ptr template type
From: Sid Sacek (ssacek_at_[hidden])
Date: 2009-07-09 14:37:48
[mailto:boost-bounces_at_[hidden]] On Behalf Of Gottlob Frege
> I don't think lock/unlock on each -> call is typically a good idea.
> x = p->x;
> y = p->y;
> That's 2 lock unlock sequences instead of one. Inefficient and what
> if y changes after you read x?
> It hides the locking too much, potentially leading to abuse and
I agree and disagree. I would at some point want to create a class
similar to what's being described, but would not expose it to the rest
of the world to use ( and abuse ). A class like that could come in
handy, as long as it's used with the knowledge of its strengths and
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk