Merge branch 'master' of http://darcs.haskell.org/packages/base into ghc-generics
[packages/base.git] / GHC / Event.hs
1 -- | This module provides scalable event notification for file
2 -- descriptors and timeouts.
3 --
4 -- This module should be considered GHC internal.
5 module GHC.Event
6 ( -- * Types
7 EventManager
8
9 -- * Creation
10 , new
11 , getSystemEventManager
12
13 -- * Running
14 , loop
15
16 -- ** Stepwise running
17 , step
18 , shutdown
19
20 -- * Registering interest in I/O events
21 , Event
22 , evtRead
23 , evtWrite
24 , IOCallback
25 , FdKey(keyFd)
26 , registerFd
27 , registerFd_
28 , unregisterFd
29 , unregisterFd_
30 , closeFd
31
32 -- * Registering interest in timeout events
33 , TimeoutCallback
34 , TimeoutKey
35 , registerTimeout
36 , updateTimeout
37 , unregisterTimeout
38 ) where
39
40 import GHC.Event.Manager
41 import GHC.Event.Thread (getSystemEventManager)