summaryrefslogtreecommitdiff
path: root/src/lib/job.cc
AgeCommit message (Collapse)Author
2020-07-29Fix bugs in thread termination causing occasional pthreadCarl Hetherington
assertion failures. Before this, it was possible for J2KEncoder::terminate_threads() to finish without terminating all threads if the thread _running_ terminate_threads() was itself interrupt()ed. This is because the thread_group::join_all() in terminate_threads() is an interruption point, so it was possible it not to complete but instead to throw interrupted_exception. Then the owning J2KEncoder would be torn down but the threads would still be running, causing use-after-frees. This commit adds some boost::this_thread::disable_interruption objects to ensure that the owning thread is not interrupted while it is being destroyed. Also tidy up code that does this stuff, assuming that it's safe to not call thread::joinable but instead do thread.interrupt(); try { thread.join(); } catch (...) {}
2020-04-14DCPReadError -> ReadError in libdcp.Carl Hetherington
2020-04-14Try to give a better error when we fail to start J2K encodingCarl Hetherington
(probably because of a lack of addressable RAM). See #1540.
2020-03-06Stop threads at the start of their object's destruction in all Job cases.Carl Hetherington
2020-01-30Various thread cleanups.Carl Hetherington
2019-12-06Adjust for changes to libdcp API.Carl Hetherington
2019-05-30Destory TranscodeJob earlier, hopefully to fix #1570.Carl Hetherington
2019-05-10Put Time types in dcpomatic namespace.Carl Hetherington
2019-02-20Report job errors even if they contain < or >. Give a better error when ↵Carl Hetherington
parsing a subtitle file fails.
2019-01-30Fix non-translated days of the week (#1455).Carl Hetherington
2019-01-22Put details of missing asset paths into the job details... box.Carl Hetherington
2018-11-22Speed up content discovery:Carl Hetherington
1. add all discovery jobs immediately rather than waiting for each one to finish (by polling) before starting the next. 2. replace polling with a condition in JobManager.
2018-11-21Tidy and fix logging.Carl Hetherington
2018-08-28Remove unnecessary log entries.Carl Hetherington
2018-08-27Remove accidentally commented-out code.Carl Hetherington
2018-08-21Give a message when changed files are re-examined.Carl Hetherington
2018-08-16Add pause/resume to the batch converter (#1248).Carl Hetherington
Add some missing locking to JobManager::decrease_priority.
2018-07-07Give better errors when incorrect KDMs are used (#1326).Carl Hetherington
2018-02-27Remove relative path elements from test location.Carl Hetherington
2018-02-25Handle errors in subtitle XML better (#1209).Carl Hetherington
2018-02-16Name threads on Linux.Carl Hetherington
2017-10-08Fix some warnings (part of #1135).Carl Hetherington
2017-09-03Some more verbose errors.Carl Hetherington
2017-04-19Various Doxygen fixes.Carl Hetherington
2017-01-28Add priority control buttons to batch converter (#961).Carl Hetherington
2016-12-21Add approximate finish time to progress on jobs (#927).Carl Hetherington
2016-09-30Speed up response to a request to pause a job.Carl Hetherington
2016-09-28Fix crash on 'report a problem' in the KDM creator.Carl Hetherington
2016-09-20Give better errors on Subrip parse failures.Carl Hetherington
2016-08-12Remove all use of stringstream in an attempt to fixCarl Hetherington
the suspected thread-unsafe crash bugs on OS X.
2016-07-22Rename SafeStringStream -> locked_stringstream. Bump deps for removal of ↵Carl Hetherington
stringstream.
2016-07-07Fix confusion about elapsed time of total job vs sub-job.Carl Hetherington
2016-07-05Try to improve progress reporting when doing image/sound digests.Carl Hetherington
2016-06-29Increase frequency of progres updates on long jobs (#900).Carl Hetherington
2016-06-20Fix another case where an exception could be thrown from a destructor.Carl Hetherington
2016-05-25No-op; fix GPL address and use the explicit-program-name version.Carl Hetherington
2015-12-18Give a more informative error when failing to find content.Carl Hetherington
2015-12-09More debugging.Carl Hetherington
2015-10-09Logging improvements to allow prettier displays in the server GUI.Carl Hetherington
2015-10-09Fix crash with no Film.Carl Hetherington
2015-10-09Allow _film to be 0.Carl Hetherington
2015-09-24assert (joinable) before joining threads; fix possible crash after ↵Carl Hetherington
cancelling jobs.
2015-09-24Fix possible null pointer dereference.Carl Hetherington
2015-09-18Make out-of-memory error message a bit more informative.Carl Hetherington
2015-09-14Lots of #include <iostream>s for Arch.Carl Hetherington
2015-09-14Add option to analyse audio automatically when content is added (#673).Carl Hetherington
2015-09-01Tidy up thread in destructor (Job)Carl Hetherington
2015-09-01Fix crash on cancellation of encodes during check of image data; allow ↵Carl Hetherington
cancellation during this time (#679).
2015-08-25Purge rint() and use llrint and friends.Carl Hetherington
2015-08-18Include tidying.Carl Hetherington