bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] implement full-blown select(2) for winsock


From: Paolo Bonzini
Subject: Re: [PATCH v2] implement full-blown select(2) for winsock
Date: Wed, 01 Oct 2008 13:09:24 +0200
User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914)

Bruno Haible wrote:
> Paolo Bonzini wrote:
>> I agree, but it seems like pipe WaitForSingleObject is broken.  You'd
>> need a thread polling with PeekNamedPipe, or a busy-waiting loop in the
>> main thread altogether.
> 
> Maybe we need to reset the pipe from "signaled" to "non-signaled" state
> after [Msg]WaitFor..Objects returns, using ResetState()?

What is ResetState?

> Or otherwise, a nearly busy-waiting loop like this:

Yes; I'll adapt the poll() emulation to do the same, but I need help
testing.

Paolo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]