<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dcpomatic/src/lib/job.cc, branch compose</title>
<subtitle>DCP-o-matic DCP tools</subtitle>
<id>https://git.carlh.net/cgit/dcpomatic/atom?h=compose</id>
<link rel='self' href='https://git.carlh.net/cgit/dcpomatic/atom?h=compose'/>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/'/>
<updated>2021-07-10T00:02:19Z</updated>
<entry>
<title>Use dcp::compose rather than our own.</title>
<updated>2021-07-10T00:02:19Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2021-07-10T00:02:19Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=5b0e331380c83ec9835e8aa42fd342b2f0ad275d'/>
<id>urn:sha1:5b0e331380c83ec9835e8aa42fd342b2f0ad275d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>C++11 tidying.</title>
<updated>2021-04-30T23:31:35Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2021-04-30T23:31:35Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=8963f0007af1a312017b9627c18b82ec2a577591'/>
<id>urn:sha1:8963f0007af1a312017b9627c18b82ec2a577591</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add some possibly-useful markers for debugging threads from coredumps.</title>
<updated>2021-04-20T22:52:07Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2021-04-20T10:27:40Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=c370c651eba466f5073384de8b304a2625c64b89'/>
<id>urn:sha1:c370c651eba466f5073384de8b304a2625c64b89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>c++11 tidying.</title>
<updated>2021-01-22T22:51:40Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2021-01-22T22:50:58Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=e52d9526f0a49acb72e8b4aa980399b119171ba5'/>
<id>urn:sha1:e52d9526f0a49acb72e8b4aa980399b119171ba5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>BOOST_FOREACH.</title>
<updated>2021-01-07T22:27:56Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2021-01-04T20:32:13Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=a5d004b0773f633401528392fc28e66d70e13ac8'/>
<id>urn:sha1:a5d004b0773f633401528392fc28e66d70e13ac8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>std::shared_ptr</title>
<updated>2021-01-07T21:48:29Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2021-01-04T20:16:53Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26'/>
<id>urn:sha1:dd9be86db6cde0afa5da0d1d1ac43b42e05dca26</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix bugs in thread termination causing occasional pthread</title>
<updated>2020-07-29T18:22:54Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-07-29T18:22:54Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=e3c7656f9dc0acbaf518c051b847ee2e4eb7ba23'/>
<id>urn:sha1:e3c7656f9dc0acbaf518c051b847ee2e4eb7ba23</id>
<content type='text'>
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 (...) {}
</content>
</entry>
<entry>
<title>DCPReadError -&gt; ReadError in libdcp.</title>
<updated>2020-04-14T19:02:56Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-04-14T19:02:56Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=b029cb06c4e0fca1fad9fecd78939efe5532fa9a'/>
<id>urn:sha1:b029cb06c4e0fca1fad9fecd78939efe5532fa9a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Try to give a better error when we fail to start J2K encoding</title>
<updated>2020-04-13T22:44:33Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-04-13T22:44:33Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=778a8b0e19715ed98969ce84cdf4859e1e0e7e52'/>
<id>urn:sha1:778a8b0e19715ed98969ce84cdf4859e1e0e7e52</id>
<content type='text'>
(probably because of a lack of addressable RAM).

See #1540.
</content>
</entry>
<entry>
<title>Stop threads at the start of their object's destruction in all Job cases.</title>
<updated>2020-03-06T21:36:16Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-03-06T21:36:16Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=caf67bef2611a911307267b20dbf3be89ffff71f'/>
<id>urn:sha1:caf67bef2611a911307267b20dbf3be89ffff71f</id>
<content type='text'>
</content>
</entry>
</feed>
