1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Fix: Main thread can reallocate data of worker threads

This commit is contained in:
Hielke Morsink
2022-05-07 19:44:20 +02:00
parent 958bfbc08a
commit 75330bb057

View File

@@ -204,7 +204,7 @@ private:
JobPool jobPool;
std::mutex printLock; // For verbose prints.
std::vector<std::vector<TItem>> containers;
std::list<std::vector<TItem>> containers;
size_t stepSize = 100; // Handpicked, seems to work well with 4/8 cores.