qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Re: [PATCH V4 2/3] qemu: Generic task offloading framew


From: Anthony Liguori
Subject: Re: [Qemu-devel] Re: [PATCH V4 2/3] qemu: Generic task offloading framework: threadlets
Date: Wed, 16 Jun 2010 10:52:40 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4

On 06/16/2010 10:47 AM, Corentin Chary wrote:

I would need something like flush_threadlet_queue for the vnc server.
I need it in
vnc_disconnect(), vnc_dpy_resize() and vnc_dpy_cpy() so wait (and/or
abort) current
encoding jobs.

I'm not sure threadlets are the right thing for the VNC server. The VNC server wants one dedicated thread. Threadlets are a thread pool. You could potentially use one thread per client but I doubt it would be worth it.

At any rate, flushing the full queue is overkill. You want to wait for your specific thread to terminate and you want to block execution until that happens. IOW, you want to join the thread.

Regards,

Anthony Liguori





reply via email to

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