Name threads on Linux.
[dcpomatic.git] / src / tools / dcpomatic.cc
index 05534cc608a57697025ed1a18bbd791d1ba3adca..2fd8edc3dae56280b10f4a44f1e7f174bc69936b 100644 (file)
@@ -344,6 +344,10 @@ public:
                delete[] accel;
 
                UpdateChecker::instance()->StateChanged.connect (boost::bind (&DOMFrame::update_checker_state_changed, this));
+
+#ifdef DCPOMATIC_LINUX
+               pthread_setname_np(pthread_self(), "gui");
+#endif
        }
 
        void remove_clicked (wxCommandEvent& ev)