From: Steinar H. Gunderson Date: Sun, 16 Sep 2018 16:42:06 +0000 (+0200) Subject: Name some threads. X-Git-Tag: 1.8.0~76^2~101 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=827d3d830220d96b2c4007b4dce4bf5da985fa9b;p=nageru Name some threads. --- 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)) {