17 Feb
2007
17 Feb
'07
10:09 p.m.
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