John Meacham <[EMAIL PROTECTED]> writes:

> forkIO action = forkIO' action' where 
>         action' = do
>                 myThreadId >>= onExit . throwTo PleaseExit
>                 action

This would be a memory leak: even after the thread finishes,
its onExit handler would remain registered.

-- 
   __("<         Marcin Kowalczyk
   \__/       [EMAIL PROTECTED]
    ^^     http://qrnik.knm.org.pl/~qrczak/
_______________________________________________
Haskell-prime mailing list
Haskell-prime@haskell.org
http://haskell.org/mailman/listinfo/haskell-prime

Reply via email to