Name threads on Linux.
[dcpomatic.git] / src / lib / job.cc
index 61c5b376734d202624967f24156dbfe5e7c8f002..ccb75fa9332379ad27488da0e101ba786c150986 100644 (file)
@@ -87,6 +87,9 @@ Job::start ()
        _start_time = time (0);
        _sub_start_time = time (0);
        _thread = new boost::thread (boost::bind (&Job::run_wrapper, this));
+#ifdef DCPOMATIC_LINUX
+       pthread_setname_np (_thread->native_handle(), "job-wrapper");
+#endif
 }
 
 /** A wrapper for the ::run() method to catch exceptions */