On 25/11/2011 20:36, Paolo Bonzini wrote:
> On 11/25/2011 05:56 PM, Fabien Chouteau wrote:
>>>> >>  Is it possible to use both? Keep the select scheme for iohandlers and
>>>> >>  slirp, but use g_main_context_iteration() for Glib stuff.
>>> >
>>> >  Perhaps with two threads, but I think it's more complicated than
>>> >  merging the handle/fd sets and doing a single poll.
>> Why two threads?
> 
> Because you have two disjoint sets of file descriptors (iohandler+slirp and 
> glib), both of which have to be waited on for a possibly infinite file.  You 
> cannot do that at the same time without two threads (unless you alternatively 
> poll one and the other).
> 

Right, thank you for all these explanations.

Regards,

-- 
Fabien Chouteau

Reply via email to