ghc-internal-9.1002.0: Basic libraries
Copyright(c) The University of Glasgow 1994-2002
Licensesee libraries/base/LICENSE
Maintainerghc-devs@haskell.org
Stabilityinternal
Portabilitynon-portable (GHC extensions)
Safe HaskellTrustworthy
LanguageHaskell2010

GHC.Internal.Conc.Windows

Description

Windows IO manager interfaces. Depending on which IO Subsystem is used requests will be routed to different places.

Synopsis

Documentation

Waiting

threadDelay :: Int -> IO () Source #

Suspends the current thread for a given number of microseconds (GHC only).

There is no guarantee that the thread will be rescheduled promptly when the delay has expired, but the thread will never continue to run earlier than specified.

Be careful not to exceed maxBound :: Int, which on 32-bit machines is only 2147483647 μs, less than 36 minutes.

registerDelay :: Int -> IO (TVar Bool) Source #

Set the value of returned TVar to True after a given number of microseconds. The caveats associated with threadDelay also apply.

Be careful not to exceed maxBound :: Int, which on 32-bit machines is only 2147483647 μs, less than 36 minutes.

Miscellaneous

asyncRead :: Int -> Int -> Int -> Ptr a -> IO (Int, Int) Source #

asyncWrite :: Int -> Int -> Int -> Ptr a -> IO (Int, Int) Source #

asyncDoProc :: FunPtr (Ptr a -> IO Int) -> Ptr a -> IO Int Source #

Console event handler