summaryrefslogtreecommitdiffstats
path: root/hw/block
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2014-01-30 11:20:32 +0100
committerMichael S. Tsirkin2014-03-09 20:09:38 +0100
commit4900116e6f0edef6877c0e8a9ca19957d47765c9 (patch)
tree8ecc45f0f28d012d2ffc8dad01352654444b89c9 /hw/block
parentAdd 'debug-threads' suboption to --name (diff)
downloadqemu-4900116e6f0edef6877c0e8a9ca19957d47765c9.tar.gz
qemu-4900116e6f0edef6877c0e8a9ca19957d47765c9.tar.xz
qemu-4900116e6f0edef6877c0e8a9ca19957d47765c9.zip
Add a 'name' parameter to qemu_thread_create
If enabled, set the thread name at creation (on GNU systems with pthread_set_np) Fix up all the callers with a thread name Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'hw/block')
-rw-r--r--hw/block/dataplane/virtio-blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c
index 2237edb4eb..d1c7ad4574 100644
--- a/hw/block/dataplane/virtio-blk.c
+++ b/hw/block/dataplane/virtio-blk.c
@@ -358,7 +358,7 @@ static void start_data_plane_bh(void *opaque)
qemu_bh_delete(s->start_bh);
s->start_bh = NULL;
- qemu_thread_create(&s->thread, data_plane_thread,
+ qemu_thread_create(&s->thread, "data_plane", data_plane_thread,
s, QEMU_THREAD_JOINABLE);
}