Tomasz Zielonka writes:

 >     threadWaitRead :: Int -> IO ()
 >     threadWaitWrite :: Int -> IO ()

Thanks for the pointer!

Am I correct in assuming that there is no "more high-level"
mechanism for scheduling more than one file descriptor? Like
select(2) or poll(2) would do?

I guess, I could implement it on top of those functions with
some clever forkIO'ing, but I wonder whether that's
particularly efficient?

I'm asking because I am fairly certain that other people
will run into this problem too. It would be nice to have a
more generic mechanism for this purpose, particularly if it
will (eventually) be supported by other implementations as
well. I mean, all the necessary infrastructure is bound to
be available in the run-time system anyway.

Peter

_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to