|
Boost Users : |
From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2007-02-17 17:09:30
On Saturday 17 February 2007 03:34 pm, Timmo Stange wrote:
> >> Another thing: The original signal is safe against deletion from
> >> a slot invocation context. That's why it uses pimpl-Idiom.
> >
> > Hmm, I didn't consider that case. Since I've already got the pimpl
> > there for signal tracking, I suppose I just need to create a local
> > copy of the shared_ptr pimpl to prevent it from destructing in
> > mid-invocation.
>
> Yes.
Actually, after looking at it more closely, nothing needs to be done. Once
the combiner is running, it doesn't cause any problems if the pimpl
destructs. Everything the combiner needs is either a local variable or
owned by a local shared_ptr in operator().
-- Frank
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net