Compare commits
3 commits
ffd9247a21
...
98604b0f91
Author | SHA1 | Date | |
---|---|---|---|
98604b0f91 | |||
947d0c8a60 | |||
7c0d4e2a57 |
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue