diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2014-01-30 10:20:31 +0000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2014-03-09 21:09:37 +0200 |
commit | 8f480de0c91a18d550721f8d9af969ebfbda0793 (patch) | |
tree | 5d1f4a76fb2cac801447291d3a723e9aa56b31c4 /util/qemu-thread-posix.c | |
parent | 5d12f961c6f10cba15b0aa43a877c1fffca463d1 (diff) | |
download | qemu-8f480de0c91a18d550721f8d9af969ebfbda0793.tar.gz qemu-8f480de0c91a18d550721f8d9af969ebfbda0793.tar.bz2 qemu-8f480de0c91a18d550721f8d9af969ebfbda0793.zip |
Add 'debug-threads' suboption to --name
Add flag storage to qemu-thread-* to store the namethreads flag
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 'util/qemu-thread-posix.c')
-rw-r--r-- | util/qemu-thread-posix.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/qemu-thread-posix.c b/util/qemu-thread-posix.c index 37dd298631..0fa6c81c0a 100644 --- a/util/qemu-thread-posix.c +++ b/util/qemu-thread-posix.c @@ -27,6 +27,13 @@ #include "qemu/thread.h" #include "qemu/atomic.h" +static bool name_threads; + +void qemu_thread_naming(bool enable) +{ + name_threads = enable; +} + static void error_exit(int err, const char *msg) { fprintf(stderr, "qemu: %s: %s\n", msg, strerror(err)); |