X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mux.cpp;h=a459c45dd43ca0f8378d9f30fdd0c3b6f7dbe46e;hb=827d3d830220d96b2c4007b4dce4bf5da985fa9b;hp=2f682c9b3c63967487d8c52986b44b65cba9933e;hpb=2eca06acb1668ccf543ed375e9ac59790672bad3;p=nageru 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]() {