<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dcpomatic/src/lib/encode_server_finder.cc, branch encode-servers</title>
<subtitle>DCP-o-matic DCP tools</subtitle>
<id>https://git.carlh.net/cgit/dcpomatic/atom?h=encode-servers</id>
<link rel='self' href='https://git.carlh.net/cgit/dcpomatic/atom?h=encode-servers'/>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/'/>
<updated>2020-11-25T14:35:05Z</updated>
<entry>
<title>Ignore unreasonably-sized replies from servers.</title>
<updated>2020-11-25T14:35:05Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-11-25T14:34:49Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=5731c1539b179524d511406c36260c81cba72b55'/>
<id>urn:sha1:5731c1539b179524d511406c36260c81cba72b55</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add some debug logging for encode servers.</title>
<updated>2020-11-25T14:35:05Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-11-25T13:03:01Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=327b8e8018eabd774c70b9d67393a50fa53e463a'/>
<id>urn:sha1:327b8e8018eabd774c70b9d67393a50fa53e463a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Build fixes for Boost &gt;= 1.73</title>
<updated>2020-09-01T14:34:26Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-08-27T20:37:32Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=c04fec82d25127fafa73c3daff87bece9aa8c8e8'/>
<id>urn:sha1:c04fec82d25127fafa73c3daff87bece9aa8c8e8</id>
<content type='text'>
Forward-ported-from: d1e9749ca290673639a49d693a8fe5c6557cc2de
</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>Various thread cleanups.</title>
<updated>2020-01-30T21:54:38Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2020-01-30T21:54:38Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=ea6b2dae46caa1da829fbf499e83cd6ae3b3773a'/>
<id>urn:sha1:ea6b2dae46caa1da829fbf499e83cd6ae3b3773a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix a couple of deadlocks caused by emitting ServersListChanged</title>
<updated>2019-02-12T22:18:43Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2019-02-12T22:18:43Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=a27a2c35f0a50d5b03b3731f01f595410fe28ec7'/>
<id>urn:sha1:a27a2c35f0a50d5b03b3731f01f595410fe28ec7</id>
<content type='text'>
with a lock on _servers_mutex; handlers to that signal may call
::servers() which tries to take a lock on the same mutex.
</content>
</entry>
<entry>
<title>Tidy up to use one list of servers.</title>
<updated>2018-04-13T00:09:10Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2018-04-13T00:09:10Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=9106e6ed551b13e1b7c7ee2088d54ce0ae430bcf'/>
<id>urn:sha1:9106e6ed551b13e1b7c7ee2088d54ce0ae430bcf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update encoding server list when servers disappear (#1176).</title>
<updated>2018-04-12T23:56:11Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2018-04-12T23:56:11Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=6dd6676700f830547e9e7c38781f09de5f2a1a00'/>
<id>urn:sha1:6dd6676700f830547e9e7c38781f09de5f2a1a00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Note and indicate servers with bad link version (#982).</title>
<updated>2018-04-12T23:12:50Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2018-04-12T23:12:50Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=ed0b3ee0c5a0ba11d3a1a1dfee8e71238bcab4bd'/>
<id>urn:sha1:ed0b3ee0c5a0ba11d3a1a1dfee8e71238bcab4bd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Name threads on Linux.</title>
<updated>2018-02-16T20:24:37Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2018-02-16T20:24:37Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=8e4a2e5ea578ac4f0f41edb6145d5c0040e33ec2'/>
<id>urn:sha1:8e4a2e5ea578ac4f0f41edb6145d5c0040e33ec2</id>
<content type='text'>
</content>
</entry>
</feed>
