Name threads on Linux.
[dcpomatic.git] / src / lib / writer.cc
index 10e4514fbcc134ef333d333d5086511b6b5660a3..227de6277731d4ff31a81649ef8eb24ed114bd1d 100644 (file)
@@ -106,6 +106,9 @@ void
 Writer::start ()
 {
        _thread = new boost::thread (boost::bind (&Writer::thread, this));
+#ifdef DCPOMATIC_LINUX
+       pthread_setname_np (_thread->native_handle(), "writer");
+#endif
 }
 
 Writer::~Writer ()