Compare commits
3 commits
98604b0f91
...
ffd9247a21
Author | SHA1 | Date | |
---|---|---|---|
ffd9247a21 | |||
11ed6e0e7d | |||
f51e37e8c6 |
|
@ -182,7 +182,7 @@ int main(int argc, char *argv[]) {
|
|||
std::cout << "Starting " << wc << " worker threads..." << std::endl;
|
||||
for (unsigned int w = 1; w <= wc; w++) {
|
||||
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();
|
||||
|
||||
while (it != all_fires.end()) {
|
||||
|
|
Loading…
Reference in a new issue