
21 Jul
2008
21 Jul
'08
7:09 a.m.
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@gmail.com