1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-2009
5 * IO Manager functionality in the RTS
7 * -------------------------------------------------------------------------- */
9 #ifndef RTS_IOMANAGER_H
10 #define RTS_IOMANAGER_H
12 #if defined(mingw32_HOST_OS)
14 int rts_InstallConsoleEvent ( int action, StgStablePtr *handler );
15 void rts_ConsoleHandlerDone ( int ev );
16 extern StgInt console_handler;
18 void * getIOManagerEvent (void);
19 HsWord32 readIOManagerEvent (void);
20 void sendIOManagerEvent (HsWord32 event);
24 void setIOManagerPipe (int fd);
29 // Communicating with the IO manager thread (see GHC.Conc).
30 // Posix implementation in posix/Signals.c
31 // Win32 implementation in win32/ThrIOManager.c
33 #if defined(THREADED_RTS)
34 void ioManagerWakeup (void);
35 void ioManagerDie (void);
36 void ioManagerStart (void);
39 #endif /* RTS_IOMANAGER_H */