[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC v3 PATCH 02/45] multi-process: util: Add qemu_thre
From: |
Daniel P . Berrangé |
Subject: |
Re: [Qemu-devel] [RFC v3 PATCH 02/45] multi-process: util: Add qemu_thread_cancel() to cancel running thread |
Date: |
Wed, 4 Sep 2019 10:11:18 +0100 |
User-agent: |
Mutt/1.12.1 (2019-06-15) |
On Tue, Sep 03, 2019 at 04:37:28PM -0400, Jagannathan Raman wrote:
> qemu_thread_cancel() added to destroy a given running thread.
> This will be needed in the following patches.
I don't see anything in the following patches that actually uses
this new function.
That is good though, because it is incredibly difficult to
correctly use pthread_cancel() in such a way that you correctly
release all memory and other resources (file descriptors) owned
by the thread being cancelled.
So this looks like it can thankfully be dropped.
>
> Signed-off-by: John G Johnson <address@hidden>
> Signed-off-by: Jagannathan Raman <address@hidden>
> Signed-off-by: Elena Ufimtseva <address@hidden>
> ---
> include/qemu/thread.h | 1 +
> util/qemu-thread-posix.c | 10 ++++++++++
> 2 files changed, 11 insertions(+)
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 :|
- [Qemu-devel] [RFC v3 PATCH 00/45] Initial support of multi-process qemu, Jagannathan Raman, 2019/09/03
- [Qemu-devel] [RFC v3 PATCH 02/45] multi-process: util: Add qemu_thread_cancel() to cancel running thread, Jagannathan Raman, 2019/09/03
- Re: [Qemu-devel] [RFC v3 PATCH 02/45] multi-process: util: Add qemu_thread_cancel() to cancel running thread,
Daniel P . Berrangé <=
- [Qemu-devel] [RFC v3 PATCH 05/45] multi-process: Add config option for multi-process QEMU, Jagannathan Raman, 2019/09/03
- [Qemu-devel] [RFC v3 PATCH 04/45] multi-process: Add stub functions to facilate build of multi-process, Jagannathan Raman, 2019/09/03
- [Qemu-devel] [RFC v3 PATCH 08/45] multi-process: add functions to synchronize proxy and remote endpoints, Jagannathan Raman, 2019/09/03
- [Qemu-devel] [RFC v3 PATCH 07/45] multi-process: define proxy-link object, Jagannathan Raman, 2019/09/03