On Mon, Feb 21, 2011 at 12:39 PM, Bas van Dijk <v.dijk....@gmail.com> wrote: > On 19 February 2011 00:04, Bas van Dijk <v.dijk....@gmail.com> wrote: >> So, since the new implementation is not really faster in a >> representative benchmark and above all is buggy, I'm planning to ditch >> it in favour of the event-manager based timeout. > > The patch is ready for review: > > http://hackage.haskell.org/trac/ghc/attachment/ticket/4963/faster_timeout.dpatch
Instead of defining registerTimeout :: EventManager -> Int -> (TimeoutKey -> TimeoutCallback) -> IO TimeoutKey include TimeoutKey in the TimeoutCallback type. Someone who better understands the exception masking parts could give you better feedback on that code. Johan _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe