diff options
| author | Dr. David Alan Gilbert | 2014-01-30 11:20:32 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2014-03-09 20:09:38 +0100 |
| commit | 4900116e6f0edef6877c0e8a9ca19957d47765c9 (patch) | |
| tree | 8ecc45f0f28d012d2ffc8dad01352654444b89c9 /include | |
| parent | Add 'debug-threads' suboption to --name (diff) | |
| download | qemu-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 'include')
| -rw-r--r-- | include/qemu/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/thread.h b/include/qemu/thread.h index bf1e110a38..f7e3b9b290 100644 --- a/include/qemu/thread.h +++ b/include/qemu/thread.h @@ -52,7 +52,7 @@ void qemu_event_reset(QemuEvent *ev); void qemu_event_wait(QemuEvent *ev); void qemu_event_destroy(QemuEvent *ev); -void qemu_thread_create(QemuThread *thread, +void qemu_thread_create(QemuThread *thread, const char *name, void *(*start_routine)(void *), void *arg, int mode); void *qemu_thread_join(QemuThread *thread); |
