[GHC] #6136: gettimeofday should not be used to schedule timeouts
GHC
cvs-ghc at haskell.org
Thu May 31 15:13:41 CEST 2012
#6136: gettimeofday should not be used to schedule timeouts
------------------------------+---------------------------------------------
Reporter: DanielWaterworth | Owner:
Type: bug | Status: new
Priority: normal | Component: libraries/base
Version: 7.4.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Testcase:
Blockedby: | Blocking:
Related: |
------------------------------+---------------------------------------------
From what I can tell,
[http://hackage.haskell.org/packages/archive/base/latest/doc/html/src/GHC-
Event-Clock.html#getCurrentTime getCurrentTime] uses gettimeofday and is
used in
[http://hackage.haskell.org/packages/archive/base/latest/doc/html/src/GHC-
Event-Manager.html#registerTimeout registerTimeout] for the purpose of
scheduling timeouts. I recommend reading [http://blog.habets.pp.se/2010/09
/gettimeofday-should-never-be-used-to-measure-time this] for an
explanation of why this isn't a good idea.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6136>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list