rts/posix/Itimer.c: Handle EINTR when reading timerfd
[ghc.git] / rts / win32 / AsyncIO.h
1 /* AsyncIO.h
2 *
3 * Integrating Win32 asynchronous I/O with the GHC RTS.
4 *
5 * (c) sof, 2002-2003.
6 */
7
8 #ifndef WIN32_ASYNCHIO_H
9 #define WIN32_ASYNCHIO_H
10
11 extern unsigned int
12 addIORequest(int fd,
13 int forWriting,
14 int isSock,
15 int len,
16 char* buf);
17 extern unsigned int addDelayRequest(int usecs);
18 extern unsigned int addDoProcRequest(void* proc, void* param);
19 extern int startupAsyncIO(void);
20 extern void shutdownAsyncIO(rtsBool wait_threads);
21
22 extern int awaitRequests(rtsBool wait);
23
24 extern void abandonRequestWait(void);
25 extern void resetAbandonRequestWait(void);
26
27 #endif /* WIN32_ASYNCHIO_H */