[Haskell-cafe] Faster timeout but is it correct?

Johan Tibell johan.tibell at gmail.com
Mon Feb 21 21:55:37 CET 2011

On Mon, Feb 21, 2011 at 12:39 PM, Bas van Dijk <v.dijk.bas at gmail.com> wrote:
> On 19 February 2011 00:04, Bas van Dijk <v.dijk.bas at 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.


More information about the Libraries mailing list