[GHC] #7216: Compositional blocking on file descriptors

GHC ghc-devs at haskell.org
Mon Jan 20 00:08:17 UTC 2014


#7216: Compositional blocking on file descriptors
-------------------------------------+------------------------------------
        Reporter:  AndreasVoellmy    |            Owner:  igloo
            Type:  feature request   |           Status:  closed
        Priority:  normal            |        Milestone:  7.8.1
       Component:  libraries/base    |          Version:  7.4.2
      Resolution:  fixed             |         Keywords:
Operating System:  Unknown/Multiple  |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown      |       Difficulty:  Unknown
       Test Case:                    |       Blocked By:
        Blocking:                    |  Related Tickets:
-------------------------------------+------------------------------------

Comment (by twhitehead):

 It seems a bit strange that the last patch re-implemented different
 versions of threadWait{Read,Write}STM in Control.Concurrent for Windows
 (mingw32_HOST_OS) despite the GHC.Conc versions covering both Windows and
 non-Windows.  Why not just

 Control.Concurrent.threadWaitReadSTM :: Fd -> IO (STM (), IO ())
 Control.Concurrent.threadWaitReadSTM = GHC.Conc.threadWaitReadSTM

 Control.Concurrent.threadWaitWriteSTM :: Fd -> IO (STM (), IO ())
 Control.Concurrent.threadWaitWriteSTM = GHC.Conc.threadWaitWriteSTM

 If the issue is the GHC.Conc versions for Windows are deficient (e.g.,
 they don't handle [pass along] threadWait{Read,Write} exceptions),
 shouldn't they be fixed instead?

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


More information about the ghc-tickets mailing list