[Haskell-cafe] threadWaitRead and threadWaitWrite on multiple fds

Johan Tibell johan.tibell at gmail.com
Mon Dec 13 11:40:30 CET 2010

On Mon, Dec 13, 2010 at 9:06 AM, Mathijs Kwik <bluescreen303 at gmail.com> wrote:
> Just to reply to myself once again,
> System.Event (which isn't hidden) re-exports (un)registerFd and other
> functions I need for this.
> So I can implement all this myself. The only thing I can't do is ask
> the RTS's eventmanager to watch the fds for me, but I can just create
> my own ("new" constructor is exposed as well) to keep all fd-watching
> in 1 thread.
> So it seems just enough functionality is exposed to do what I'm after.
> Those GHC devs must be clever guys :)

Bryan and I intend the System.Event API to become more official in the
future. It's not quite portable to other implementations yet so you
should consider it to be GHC specific (like GHC.Conc) for now.


More information about the Haskell-Cafe mailing list