Re: select()/poll() on Win32: possible funding, but is it insane?

[email protected] (Jarkko Hietaniemi)
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.

I was actually sort of aware of this (only sort of, since I've never
written a Win32 program).  From the info I've picked up it isn't quite
that smooth in Win32, either, there are some exceptions and exceptions
to exceptions...?  But yes, the WFMO is a more generic interface than
select/poll.

> 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).

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.