summaryrefslogtreecommitdiff
path: root/rts/win32/IOManager.h
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2014-07-21 19:44:23 -0500
committerAustin Seipp <austin@well-typed.com>2014-07-28 09:29:14 -0500
commit94fba5993db85291674c5c58e64a0b484ee369d4 (patch)
treefa6d7875bd9e8da616bc36fe08bac550396135d9 /rts/win32/IOManager.h
parent59b6ea8d7535164b7ed9dd514468fb701b9f8ce8 (diff)
downloadhaskell-94fba5993db85291674c5c58e64a0b484ee369d4.tar.gz
rts: delint/detab/dewhitespace win32/IOManager.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'rts/win32/IOManager.h')
-rw-r--r--rts/win32/IOManager.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/rts/win32/IOManager.h b/rts/win32/IOManager.h
index 866e950f4a..30fad49c94 100644
--- a/rts/win32/IOManager.h
+++ b/rts/win32/IOManager.h
@@ -13,7 +13,7 @@
/*
The IOManager subsystem provides a non-blocking view
of I/O operations. It lets one (or more) OS thread(s)
- issue multiple I/O requests, which the IOManager then
+ issue multiple I/O requests, which the IOManager then
handles independently of/concurrent to the thread(s)
that issued the request. Upon completion, the issuing
thread can inspect the result of the I/O operation &
@@ -29,30 +29,30 @@
*
*/
typedef void (*CompletionProc)(unsigned int requestID,
- int fd,
- int len,
- void* buf,
- int errCode);
+ int fd,
+ int len,
+ void* buf,
+ int errCode);
-/*
+/*
* Asynchronous procedure calls executed by a worker thread
- * take a generic state argument pointer and return an int by
- * default.
+ * take a generic state argument pointer and return an int by
+ * default.
*/
typedef int (*DoProcProc)(void *param);
typedef union workData {
struct {
- int fd;
- int len;
- char *buf;
+ int fd;
+ int len;
+ char *buf;
} ioData;
- struct {
- int usecs;
+ struct {
+ int usecs;
} delayData;
- struct {
- DoProcProc proc;
- void* param;
+ struct {
+ DoProcProc proc;
+ void* param;
} procData;
} WorkData;
@@ -78,8 +78,8 @@ extern CompletionProc onComplete;
#define WORKER_DO_PROC 16
/*
- * Starting up and shutting down.
- */
+ * Starting up and shutting down.
+ */
extern BOOL StartIOManager ( void );
extern void ShutdownIOManager ( rtsBool wait_threads );
@@ -89,18 +89,18 @@ extern void ShutdownIOManager ( rtsBool wait_threads );
* will invoke upon completion.
*/
extern int AddDelayRequest ( unsigned int usecs,
- CompletionProc onCompletion);
+ CompletionProc onCompletion);
extern int AddIORequest ( int fd,
- BOOL forWriting,
- BOOL isSocket,
- int len,
- char* buffer,
- CompletionProc onCompletion);
+ BOOL forWriting,
+ BOOL isSocket,
+ int len,
+ char* buffer,
+ CompletionProc onCompletion);
extern int AddProcRequest ( void* proc,
- void* data,
- CompletionProc onCompletion);
+ void* data,
+ CompletionProc onCompletion);
extern void abandonWorkRequest ( int reqID );