Login  Register

Re: Finalization question

Posted by Udo Schneider on Aug 05, 2014; 12:08pm
URL: https://forum.world.st/Finalization-question-tp4771533p4771835.html

On 05.08.2014 12:10, Santiago Bragagnolo wrote:> TaskIT has a feature
named StickyReference, for that propouse, is not
 > trivial at all, because when you fork you are using a block that has a
 > reference to a context. In the end even if your variable is nil, your
 > process is being pointed by the context.
You're feeding my deepest fears :-)

I also reduced the testcases to even show a (IMHO) faulty behavior w/o
any process at all. Simple references are sufficient.

Still I'm wondering what's the official way to solve that problem. IMHO
objects with forked background processes which want to terminate those
processes implicitly using finalization isn't something uncommon ...

CU,

Udo