]> git.sesse.net Git - nageru/commitdiff
Give the x264 thread a name.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 23 Apr 2017 18:38:56 +0000 (20:38 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 23 Apr 2017 18:38:56 +0000 (20:38 +0200)
x264_encoder.cpp

index dbdef5b1a215e61936eae6d37e78ae47e2591288..8be53ceea635b8b832466d531007c65dfd69a093 100644 (file)
@@ -227,6 +227,7 @@ void X264Encoder::encoder_thread_func()
                perror("nice()");
                // No exit; it's not fatal.
        }
+       pthread_setname_np(pthread_self(), "x264_encode");
        init_x264();
        x264_init_done = true;