summaryrefslogtreecommitdiff
path: root/rts/win32/AsyncIO.h
blob: 27669ce0b44ccc62178cc917a02b13ff8b94baa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* AsyncIO.h
 *
 * Integrating Win32 asynchronous I/O with the GHC RTS.
 *
 * (c) sof, 2002-2003.
 */

#ifndef WIN32_ASYNCHIO_H
#define WIN32_ASYNCHIO_H

extern unsigned int
addIORequest(int   fd,
	     int   forWriting,
	     int   isSock,
	     int   len,
	     char* buf);
extern unsigned int addDelayRequest(int   msecs);
extern unsigned int addDoProcRequest(void* proc, void* param);
extern int  startupAsyncIO(void);
extern void shutdownAsyncIO(rtsBool wait_threads);

extern int awaitRequests(rtsBool wait);

extern void abandonRequestWait(void);
extern void resetAbandonRequestWait(void);

#endif /* WIN32_ASYNCHIO_H */