diff options
Diffstat (limited to 'rts/win32/AsyncIO.h')
-rw-r--r-- | rts/win32/AsyncIO.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/rts/win32/AsyncIO.h b/rts/win32/AsyncIO.h new file mode 100644 index 0000000000..2077ea0cf7 --- /dev/null +++ b/rts/win32/AsyncIO.h @@ -0,0 +1,25 @@ +/* AsyncIO.h + * + * Integrating Win32 asynchronous I/O with the GHC RTS. + * + * (c) sof, 2002-2003. + */ +#ifndef __ASYNCHIO_H__ +#define __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(void); + +extern int awaitRequests(rtsBool wait); + +extern void abandonRequestWait(void); +extern void resetAbandonRequestWait(void); + +#endif /* __ASYNCHIO_H__ */ |