[project @ 1999-09-16 13:14:38 by simonmar]
Cleanup of non-blocking I/O - file descriptors are now always set to non-blocking mode. - we don't do an inputReady operation on descriptors before attempting to read from them any more. - the non-blocking flag on Handles has gone. - the {set,clear}[Conn]NonBlockingFlag() functions have gone. - the socket operations have been made to work properly with threads: accept is now non-blocking (it does a threadWaitRead instead of blocking), and the file descriptors returned by accept are set to non-blocking mode. Win32 will need some adjustments, no doubt.
Showing
- ghc/lib/misc/SocketPrim.lhs 18 additions, 5 deletionsghc/lib/misc/SocketPrim.lhs
- ghc/lib/misc/cbits/acceptSocket.c 39 additions, 29 deletionsghc/lib/misc/cbits/acceptSocket.c
- ghc/lib/misc/cbits/createSocket.c 6 additions, 0 deletionsghc/lib/misc/cbits/createSocket.c
- ghc/lib/std/PrelHandle.lhs 5 additions, 23 deletionsghc/lib/std/PrelHandle.lhs
- ghc/lib/std/cbits/fileObject.c 1 addition, 30 deletionsghc/lib/std/cbits/fileObject.c
- ghc/lib/std/cbits/fileObject.h 0 additions, 1 deletionghc/lib/std/cbits/fileObject.h
- ghc/lib/std/cbits/filePutc.c 14 additions, 12 deletionsghc/lib/std/cbits/filePutc.c
- ghc/lib/std/cbits/openFile.c 12 additions, 6 deletionsghc/lib/std/cbits/openFile.c
- ghc/lib/std/cbits/readFile.c 1 addition, 10 deletionsghc/lib/std/cbits/readFile.c
- ghc/lib/std/cbits/writeFile.c 9 additions, 11 deletionsghc/lib/std/cbits/writeFile.c
Loading
Please register or sign in to comment