> What about a kill method that requires a "destructor" function.  This
> would be similar to the create syntax and we could make a deal with the
> programmer.  We're going to give you the chance to cleanup and when that
> function exits were going to assume that you have cleaned up and kill it
> reguardless.
> 
> sub cleanup {
>    stuff that cleans up shared data here....
> }
> 
> ->kill("cleanup","cleanup args");
> 
> 
> -Joshua Hoblitt

Won't work for modules that want to register cleanup info.
Perhaps there should be an cleanup handler register per thread?
$thread->add_cleanup();
Arthur

Reply via email to