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