mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-03 12:25:27 +01:00
4569bff42c
The memory orders of the worker pool and of the settings pointer stay as they are; each line says why its order is enough. The settings pointer is set once, so it can't be const. The pool threads are std::jthread, which the destructor of the pool joins as before. wake() and next_job() are const, the test lambdas capture what they use, and the length of a vehicle found near another one comes from a helper, which keeps update_neighbours() under the cognitive complexity limit.