[PATCH 03/10] util: add stop/drain functions to thread pool
Daniel P. Berrangé
berrange at redhat.com
Tue Jul 21 15:34:57 UTC 2020
On Tue, Jul 14, 2020 at 12:32:54PM +0300, Nikolay Shirokovskiy wrote:
> Stop just send signal for threads to exit when they finish with
> current task. Drain waits when all threads will finish.
>
> Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.com>
> ---
> src/libvirt_private.syms | 2 ++
> src/util/virthreadpool.c | 43 ++++++++++++++++++++++++++++++++++++++-----
> src/util/virthreadpool.h | 3 +++
> 3 files changed, 43 insertions(+), 5 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list
mailing list