]> git.sesse.net Git - nageru/blobdiff - mux.cpp
Name some threads.
[nageru] / mux.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]() {