Compare commits

..

3 commits

Author SHA1 Message Date
eriedaberrie 98604b0f91 Lowercased some consts 2024-01-08 22:53:24 -08:00
eriedaberrie 947d0c8a60 Just use c++17
Not worth
2024-01-08 22:14:28 -08:00
eriedaberrie 7c0d4e2a57 Only lock once per iteration 2024-01-08 21:56:16 -08:00

View file

@ -182,7 +182,7 @@ int main(int argc, char *argv[]) {
std::cout << "Starting " << wc << " worker threads..." << std::endl; std::cout << "Starting " << wc << " worker threads..." << std::endl;
for (unsigned int w = 1; w <= wc; w++) { for (unsigned int w = 1; w <= wc; w++) {
workers.push_back(std::thread([&it, &n_done, &it_lock, &all_fires, workers.push_back(std::thread([&it, &n_done, &it_lock, &all_fires,
&residentials, &out_dir, w, distance]() { &residentials, &out_dir, w, distance]() {
it_lock.lock(); it_lock.lock();
while (it != all_fires.end()) { while (it != all_fires.end()) {