[GHC] #6061: threadDelay broken on Windows

GHC cvs-ghc at haskell.org
Mon Apr 30 17:03:45 CEST 2012


#6061: threadDelay broken on Windows
---------------------------------+------------------------------------------
    Reporter:  simonmar          |       Owner:  pcapriotti      
        Type:  bug               |      Status:  patch           
    Priority:  highest           |   Milestone:  7.6.1           
   Component:  Compiler          |     Version:  7.4.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------
Changes (by pcapriotti):

  * status:  new => patch


Comment:

 I realized that we can actually work around the clock skew issue by
 calculating the delay target directly in the IO manager thread, assuming
 it always wakes up promptly enough to make the difference in timing
 negligible.

 The attached patch fixes the `ThreadDelay001` test for me.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6061#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list