|Subject:||Re: [Haskell-cafe] scheduling an alarm|
|Date:||Mon, 25 Jan 2010 23:19:53 -0800|
1) Don't use System.Posix.Signals
It isn't necessary and makes your code less portable
2) The POSIX SIGALRM is used/caught by the RTS and that is why you are seeing strange behavior.
3) Consider using Haskell exceptions from Control.Concurrent (throwTo).
Not sure what you want to do but you can always "myThreadId >>= \tid -> forkIO $ threadDelay someDelayTime >> (throwTo tid someExceptionVal)"
On Mon, Jan 25, 2010 at 10:25 PM, Brian Denheyer <[email protected]> wrote:
I cobbled the following together from bits and pieces I found on
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
|<Prev in Thread]||Current Thread||[Next in Thread>|
|Previous by Date:||Re: [Haskell-cafe] imaging textbooks?, Thomas DuBuisson|
|Next by Date:||Re: [Haskell-cafe] Re: could we get a Data instance for Data.Text.Text?, José Pedro Magalhães|
|Previous by Thread:||[Haskell-cafe] scheduling an alarm, Brian Denheyer|
|Next by Thread:||Re: [Haskell-cafe] scheduling an alarm, Thomas DuBuisson|
|Indexes:||[Date] [Thread] [Top] [All Lists]|