bug-gnulib
[Top][All Lists]
Advanced

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

Re: lib/poll.c bug?


From: Paolo Bonzini
Subject: Re: lib/poll.c bug?
Date: Wed, 06 Jul 2011 10:38:24 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc15 Mnenhy/0.8.3 Thunderbird/3.1.10

On 07/06/2011 10:23 AM, Erik Faye-Lund wrote:
>  Without proper kernel-level support for poll, we probably can't have a
>  poll on Windows that suspend the thread until an event happens; we'll
>  have to accept a bit of polling. But I believe that looking and
>  quacking like POSIX is better than doing something the standard says
>  shouldn't happen. Wasting CPU cycles is IMO better than returning 0 in
>  this case (but perhaps I'm biased as I've been burned by this
>  behavior). Yielding the thread and/or sleeping a bit on retry might be
>  a better compromise, though.

Ping? Should I re-post the patch with SwitchToThread() squashed in?

I think so.

Paolo



reply via email to

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