Separated the IO manager into a timer manager and a file IO manager.
[packages/base.git] / GHC / Event.hs
1 {-# LANGUAGE Trustworthy #-}
2
3 -- ----------------------------------------------------------------------------
4 -- | This module provides scalable event notification for file
5 -- descriptors and timeouts.
6 --
7 -- This module should be considered GHC internal.
8 --
9 -- ----------------------------------------------------------------------------
10
11 module GHC.Event
12 ( -- * Types
13 EventManager
14
15 -- * Creation
16 , getSystemEventManager
17 , getSystemTimerManager
18
19 -- * Registering interest in I/O events
20 , Event
21 , evtRead
22 , evtWrite
23 , IOCallback
24 , FdKey(keyFd)
25 , registerFd
26 , registerFd_
27 , unregisterFd
28 , unregisterFd_
29 , closeFd
30
31 -- * Registering interest in timeout events
32 , TimeoutCallback
33 , TimeoutKey
34 , registerTimeout
35 , updateTimeout
36 , unregisterTimeout
37 ) where
38
39 import GHC.Event.Manager
40 import GHC.Event.Thread (getSystemEventManager, getSystemTimerManager)
41