qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v4 00/10] main-loop: switch to g_poll(3) on POSI


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v4 00/10] main-loop: switch to g_poll(3) on POSIX hosts
Date: Fri, 22 Feb 2013 12:47:06 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

Il 22/02/2013 11:07, Laurent Desnogues ha scritto:
>> The g_poll(3) interface is a portable version of the poll(2) system call.  
>> The
>> > difference to select(2) is that fine-grained events (G_IO_IN, G_IO_OUT,
>> > G_IO_HUP, G_IO_ERR, G_IO_PRI) can be monitored instead of just
>> > read/write/exception.  Also, there is no limit to the file descriptor 
>> > numbers
>> > that may be used, allowing applications to scale to many file descriptors. 
>> >  See
>> > the documentation for details:
>> >
>> >   http://developer.gnome.org/glib/2.28/glib-The-Main-Event-Loop.html#g-poll
> g_poll isn't available in older glib versions used by CentOS (2.12
> on CentOS 5.6).

Hmm, right.  But we can just use poll.  We require a newer glib that has
g_poll on Windows, but we know that on POSIX systems g_poll is really poll.

Paolo



reply via email to

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