]> git.sesse.net Git - nageru/commitdiff
Name some threads.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 16 Sep 2018 16:42:06 +0000 (18:42 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 16 Sep 2018 16:42:06 +0000 (18:42 +0200)
mux.cpp
player.cpp

diff --git a/mux.cpp b/mux.cpp
index 2f682c9b3c63967487d8c52986b44b65cba9933e..a459c45dd43ca0f8378d9f30fdd0c3b6f7dbe46e 100644 (file)
--- 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<mutex> lock(mu);
        for ( ;; ) {
                packet_queue_ready.wait(lock, [this]() {
index a488780a12a225f933edee13dbd859bcbda7662c..136da21901c44d408a267c27f7c47689b4ca195a 100644 (file)
@@ -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)) {