Re: select()/poll() on Win32: possible funding, but is it insane?
[email protected] (Mark Mielke)
| Newsgroups | perl.perl5.porters,perl.loop |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jan 30, 2001 at 07:03:21AM -0500, "Horsley Tom" wrote: > > First fork() emulation and now select()? If we are not careful in ten > > years or so NT/W2K/W2010 will be almost as useful as UNIX was > > in mid-1980's. > Too late :-). WaitForMultipleObjects() on win32 is already *infinitely* > more useful than select() or poll() since you can wait on all kinds > of handles, not just file descriptors you are doing I/O on, but also > semaphores, process handles for processes you are waiting to finish, etc. > If there is one thing win32 does well, it is event loops. (Oh, and if > you want the windows messages involved as well, use > MsgWaitForMultipleObjects). Too bad it can only wait on 32 or 64 handles, eh? Also it doesn't work for pipes, and if memory serves, it doesn't really work for sockets. mark -- [email protected]/[email protected]/[email protected] __________________________ . . _ ._ . . .__ . . ._. .__ . . . .__ | SIR Tools (7H12) |\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | Nortel Networks | | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada One ring to rule them all, one ring to find them, one ring to bring them all and in the darkness bind them... http://mark.mielke.cc/