]> git.sesse.net Git - nageru/blobdiff - decklink_output.cpp
Give all of our threads meaningful names, to aid with debugging.
[nageru] / decklink_output.cpp
index c5bf96b3a0c404f0f448535d5da3fd3a286641c1..21baf618f7aba57a5bab928ee334c33cff40c6db 100644 (file)
@@ -1,6 +1,7 @@
 #include <movit/effect_util.h>
 #include <movit/util.h>
 #include <movit/resource_pool.h>  // Must be above the Xlib includes.
+#include <pthread.h>
 
 #include <epoxy/egl.h>
 
@@ -361,6 +362,7 @@ unique_ptr<DeckLinkOutput::Frame> DeckLinkOutput::get_frame()
 
 void DeckLinkOutput::present_thread_func()
 {
+       pthread_setname_np(pthread_self(), "DeckLinkOutput");
        for ( ;; ) {
                unique_ptr<Frame> frame;
                {