|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [RFC PATCH v2 5/8] thread-pool: Implement .cancel_async |
Date: | Tue, 26 Aug 2014 10:42:48 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 |
Il 26/08/2014 08:08, Fam Zheng ha scritto: > + qemu_mutex_lock(&pool->lock); > + if (thread_pool_cancel_from_queue(elem)) { > + elem->state = THREAD_CANCELED_ASYNC; > + } Can you simply set it to THREAD_DONE (and set elem->ret to -ECANCELED)? Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |