Proposal: new signal-handling API

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Jul 21 07:09:29 EDT 2008


Hello Duncan,

Monday, July 21, 2008, 2:56:24 PM, you wrote:

> Currently libs that launch threads have no easy means of getting
> notified when the main thread is going to exit.

i think that problem is not that they launch threads. they just not
have any exception sent to it. exceptions are standard way of cleanup,
so exit/signals should send exceptions. to all threads that wants to
clean up

that, for example, about automatic sending special exceptions EXIT and
SIGNAL x, to every haskell thread? i know one problem of this design -
sometimes threads should synchronize their cleanup, so subthread
cleans first, and superthread next


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Libraries mailing list