cpp: Use #pragma once instead of #ifndef guards
[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 #pragma once
9
10 extern unsigned int
11 addIORequest(int fd,
12 bool forWriting,
13 bool isSock,
14 HsInt len,
15 char* buf);
16 extern unsigned int addDelayRequest(HsInt usecs);
17 extern unsigned int addDoProcRequest(void* proc, void* param);
18 extern int startupAsyncIO(void);
19 extern void shutdownAsyncIO(bool wait_threads);
20
21 extern int awaitRequests(bool wait);
22
23 extern void abandonRequestWait(void);
24 extern void resetAbandonRequestWait(void);