[Qemu-devel] Re: [PATCH V3 2/3] qemu: Generic asynchronous threading framework to offload tasks

2010-06-03 Thread Corentin Chary
On Thu, Jun 3, 2010 at 10:56 AM, Gautham R Shenoy e...@in.ibm.com wrote: From: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com This patch creates a generic asynchronous-task-offloading infrastructure. It's extracted out of the threading framework that is being used by paio. The reason for

[Qemu-devel] Re: [PATCH V3 2/3] qemu: Generic asynchronous threading framework to offload tasks

2010-06-03 Thread Paolo Bonzini
On 06/03/2010 01:41 PM, Corentin Chary wrote: +if (sigprocmask(SIG_SETMASK,set,oldset)) { +async_abort(errno, sigprocmask); +} + +qemu_thread_create_attr(thread,attr, async_worker_thread, queue); + +if (sigprocmask(SIG_SETMASK,oldset, NULL)) { +