X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fjob.cc;h=ccb75fa9332379ad27488da0e101ba786c150986;hp=61c5b376734d202624967f24156dbfe5e7c8f002;hb=8e4a2e5ea578ac4f0f41edb6145d5c0040e33ec2;hpb=8a1e5f6a6c3ea0147c687fde40110f4ec138fd9b diff --git a/src/lib/job.cc b/src/lib/job.cc index 61c5b3767..ccb75fa93 100644 --- a/src/lib/job.cc +++ b/src/lib/job.cc @@ -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 */