Files
qemu-qemu-1/util
Daniel P. Berrangé d74938d14c util: set the name for the 'main' thread on Windows
The default main thread name is undefined, so use a constructor to
explicitly set it to 'main'. This constructor is marked to run early
as the thread name is intended to be used in error reporting / logs
which may be triggered very early in QEMU execution.

This is only done on Windows platforms, because on Linux (and possibly
other POSIX platforms) changing the main thread name has a side effect
of changing the process name reported by tools like 'ps' which fetch
from the file /proc/self/task/tid/comm, expecting it to be the binary
name.

The subsequent patch will address POSIX platforms in a different way.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dave@treblig.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2026-03-05 17:40:24 +00:00
..
2026-01-22 11:23:31 +00:00
2025-01-16 20:57:17 -08:00
2024-09-20 10:00:27 +03:00
2025-10-01 08:33:24 +02:00
2024-09-13 20:11:13 +02:00
2025-03-10 17:07:16 +08:00
2025-01-29 11:43:04 -03:00
2024-06-21 09:47:22 -03:00
2025-10-03 09:48:02 -04:00
2024-06-19 12:42:03 +02:00
2025-12-27 10:11:12 +01:00