blob: 63d8f3482729b3ef6c83a013b92c7d7d3ef292de (
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
28
29
|
/* AsyncIO.h
*
* Integrating Win32 asynchronous I/O with the GHC RTS.
*
* (c) sof, 2002-2003.
*
* NOTE: This is the MIO manager, only used for --io-manager=posix.
* For the WINIO manager see AsyncWinIO.h.
*/
#pragma once
#include "Rts.h"
extern unsigned int
addIORequest(int fd,
bool forWriting,
bool isSock,
HsInt len,
char* buf);
extern unsigned int addDelayRequest(HsInt usecs);
extern unsigned int addDoProcRequest(void* proc, void* param);
extern int startupAsyncIO(void);
extern void shutdownAsyncIO(bool wait_threads);
extern int awaitRequests(bool wait);
extern void abandonRequestWait(void);
extern void resetAbandonRequestWait(void);
|