Manager takes a flag that indicates whether it should de-register a file registration...
[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 , new
18 , getSystemTimerManager
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.TimerManager (TimeoutCallback, TimeoutKey, registerTimeout,
42 updateTimeout, unregisterTimeout)
43 import GHC.Event.Thread (getSystemEventManager, getSystemTimerManager)
44