qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3] glib: fix g_poll early timeout on windows


From: Alex Bligh
Subject: Re: [Qemu-devel] [PATCH v3] glib: fix g_poll early timeout on windows
Date: Tue, 22 Apr 2014 10:21:23 +0100

On 22 Apr 2014, at 10:03, Stanislav Vorobiov wrote:

>> + */
>> +#define g_poll(fds, nfds, timeout) g_poll_fixed(fds, nfds, timeout)
>> +gint g_poll_fixed(GPollFD *fds, guint nfds, gint timeout);

I can't comment on the Windows specific bits of this patch (though
I have commented on what needs fixing), however, I'm confused by the
need for the above.

We call g_poll. With your patch (under Windows), we should call
something else.

Why not just move the whole of qemu_poll_ns to an OS specific
file (like aio-posix.c / aio-win32.c - even dropping it in those
files would be better), and just implement qemu_poll_ns so it
calls the right thing. IE don't even call gpoll under windows
(we don't under POSIX if ppoll is present), don't #define, etc.

-- 
Alex Bligh







reply via email to

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