X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2Fwin32%2FAsyncIO.h;fp=rts%2Fwin32%2FAsyncIO.h;h=2077ea0cf73d771276535957b520e3bc6c8f1794;hb=0065d5ab628975892cea1ec7303f968c3338cbe1;hp=0000000000000000000000000000000000000000;hpb=28a464a75e14cece5db40f2765a29348273ff2d2;p=ghc-hetmet.git diff --git a/rts/win32/AsyncIO.h b/rts/win32/AsyncIO.h new file mode 100644 index 0000000..2077ea0 --- /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__ */