2077ea0cf73d771276535957b520e3bc6c8f1794
[ghc-hetmet.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 #ifndef __ASYNCHIO_H__
8 #define __ASYNCHIO_H__
9 extern unsigned int
10 addIORequest(int   fd,
11              int   forWriting,
12              int   isSock,
13              int   len,
14              char* buf);
15 extern unsigned int addDelayRequest(int   msecs);
16 extern unsigned int addDoProcRequest(void* proc, void* param);
17 extern int  startupAsyncIO(void);
18 extern void shutdownAsyncIO(void);
19
20 extern int awaitRequests(rtsBool wait);
21
22 extern void abandonRequestWait(void);
23 extern void resetAbandonRequestWait(void);
24
25 #endif /* __ASYNCHIO_H__ */