From 827d3d830220d96b2c4007b4dce4bf5da985fa9b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 16 Sep 2018 18:42:06 +0200 Subject: [PATCH] Name some threads. --- mux.cpp | 2 ++ player.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mux.cpp b/mux.cpp index 2f682c9..a459c45 100644 --- a/mux.cpp +++ b/mux.cpp @@ -237,6 +237,8 @@ void Mux::unplug() void Mux::thread_func() { + pthread_setname_np(pthread_self(), "Mux"); + unique_lock lock(mu); for ( ;; ) { packet_queue_ready.wait(lock, [this]() { diff --git a/player.cpp b/player.cpp index a488780..136da21 100644 --- a/player.cpp +++ b/player.cpp @@ -29,6 +29,8 @@ extern HTTPD *global_httpd; void Player::thread_func(bool also_output_to_stream) { + pthread_setname_np(pthread_self(), "Player"); + QSurface *surface = create_surface(); QOpenGLContext *context = create_context(surface); if (!make_current(context, surface)) { -- 2.39.2