summaryrefslogtreecommitdiff
path: root/test/socket_test.cc
AgeCommit message (Collapse)Author
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.
2022-05-02Replace some raw arrays with std::vectors.Carl Hetherington
2022-04-22Missing override.Carl Hetherington
2021-05-03C++11 tidying.Carl Hetherington
2021-01-07std::shared_ptrCarl Hetherington
2020-10-13Make socket tests connect explicitly to localhost to try to fixCarl Hetherington
error 1214 on Windows.
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-17Add feature to Socket so that it can send digests of data it has sentCarl Hetherington
and check those digests on receive.