This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NextAct next_act; | |
size_t n = persons.size(); | |
#pragma omp parallel for firstprivate(next_act) | |
for (size_t i = 0; i < n; ++i) { | |
auto& person = persons[i]; | |
person->selectNextAct(cal, next_act); | |
#pragma omp critical | |
{ | |
next_act.place->addPerson(person); | |
} |