>
> > 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
So what happens to threads without a registered handler? Should the
default be to just kill them unless the programmer takes steps
otherwise? That said I think a per thread handler is a great idea.