summaryrefslogtreecommitdiff
path: root/src/lib/encode_server.cc
AgeCommit message (Collapse)Author
2026-01-05Fix valgrind support.Carl Hetherington
2025-12-05Cleanup: can now remove the _NC log variants.Carl Hetherington
2025-11-27Fix overly-long thread name, and give it a number.Carl Hetherington
2025-10-10Allow Waker to keep different things awake for different reasons.Carl Hetherington
2025-07-10Remove compose.hpp includes.Carl Hetherington
sed -i "/include.*compose.hpp/d;" src/lib/*.cc src/wx/*.cc src/wx/*.h src/tools/*.cc src/lib/*.h test/*.cc
2025-07-10Replace String::compose with fmt.Carl Hetherington
sed -i "/Plural-Forms/n;/%100/n;/scanf/n;s/%[123456789]/{}/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc src/lib/po/*.po src/wx/po/*.po src/tools/po/*.po test/*.cc sed -i "s/String::compose */fmt::format/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc test/*.cc
2025-03-22Add abstraction of io_{context,service} and use it as appropriate.Carl Hetherington
2025-03-22Make the Socket connect() call a little friendlier.Carl Hetherington
This avoids some boilerplate.
2025-01-05Bump libdcp for raw_convert changes.Carl Hetherington
raw_convert<string> is gone, so here we use fmt::{to_string,format} instead. Other raw_converts now use fast_float.
2024-04-29Cleanup a few verbose asio-related calls.Carl Hetherington
2024-04-21Rename Encoder -> FilmEncoder, and subclasses.Carl Hetherington
2024-04-21Extract all uses of DCP-o-matic name to allow branding.Carl Hetherington
2024-03-20Remove all use of add_child() from xmlpp.Carl Hetherington
2024-01-28Rearrange encoder threading.Carl Hetherington
Soon we'll add a new encoder type, and the existing structure was already creaking a bit at the seams while handling local and remote encodes. Here we split out an encoder thread and introduce the concept of a "sync" thread (which blocks while the encoding is happening). Later we'll have another type which submits the encode request to a GPU and receives the reply back later.
2023-10-28Check some unsanitized network inputs before allocating memory using them.Carl Hetherington
2022-12-10Extract constants.hCarl Hetherington
2022-04-22Use libdcp's warnings.hCarl Hetherington
2022-02-17Keep Waker around for longer so it works better (#2184).Carl Hetherington
2021-04-07Assorted C++11/formatting cleanups.Carl Hetherington
2021-02-24Fix config.xml corruption when it contains multi-byte UTF8 characters.Carl Hetherington
2021-01-11More c++ tidying.Carl Hetherington
2021-01-07BOOST_FOREACH.Carl Hetherington
2021-01-07std::shared_ptrCarl Hetherington
2020-11-02Replace dcp::Data with dcp::ArrayDataCarl Hetherington
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-07-26Various OSX warnings fixes.Carl Hetherington
2020-07-26Ignore libxml++ warnings in a nicer way.Carl Hetherington
2020-07-23Use thread_group for improved exception safety (#1785).Carl Hetherington
2020-04-17Checksum network encode requests and replies to protect againstCarl Hetherington
network corruption (#1381).
2020-02-19Another macOS std::list boost::thread SNAFU.Carl Hetherington
2020-01-30Various thread cleanups.Carl Hetherington
2019-11-04Add some new Waker calls.Carl Hetherington
2019-03-11Missing part of previous commit.Carl Hetherington
2019-03-11Protect _broadcast.socket from simultaneous access.Carl Hetherington
2018-11-21Tidy and fix logging.Carl Hetherington
2018-09-06Try to prevent encode server test crashing in valgrind.Carl Hetherington
2018-02-16Name threads on Linux.Carl Hetherington
2018-02-04Listen for server replies on different ports on main and batch, and get ↵Carl Hetherington
servers to send replies to both (#1190).
2018-01-06Add version number to encode server welcome message (#1157).Carl Hetherington
2017-05-30Fix what empirically seems to be a double-delete, though I'm not sure how it is.Carl Hetherington
2017-05-26Fix unlikely crash.Carl Hetherington
2017-05-26Some missing cleanup of _broadcast.Carl Hetherington
2017-04-27Move ports around to allow master/server to coexist (#962).Carl Hetherington
2016-08-12Move raw_convert into libdcp.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-03Remove several exception-throwing asserts from destructors.Carl Hetherington
2016-06-21Revert "Use make_shared<>."Carl Hetherington
Support for this seems to vary wildly across DoM's build targets. Stuff that builds on 16.04 won't build on 14.04, for example. Seems to not be worth the hassle now. This reverts commit 5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f.
2016-06-21Use make_shared<>.Carl Hetherington
2016-05-25No-op; fix GPL address and use the explicit-program-name version.Carl Hetherington