[Haskell-cafe] Suggestiong for inter-thread communication

Thiago Negri evohunz at gmail.com
Sat Jan 26 10:46:04 CET 2013


Do you need advice on what? I didn't understand your last phrase.
Em 26/01/2013 06:25, "Erik de Castro Lopo" <mle+hs at mega-nerd.com> escreveu:

> Hi all,
>
> I am in the process of writing a Haskell program consisting of two
> threads, one for performing a calculation and one for an Ncurses UI
> (haskell-ncurses).
>
> The calculation thread needs to feed a stream of numbers back to the
> UI thread (about 1 value per second) and the UI needs to take input
> from the user and will pass parameter changes to the calculation
> thread using an IORef and atomicModifyIORef.
>
> However, I'm not sure how to hande the UI thread. The UI thread would
> normally wait for Ncurses input using getEvent, but I need advice on
> how to the the data from the calculation thread.
>
> Any advice or things to try?
>
> Cheers,
> Erik
> --
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com/
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130126/44c02d8f/attachment.htm>


More information about the Haskell-Cafe mailing list