X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/323d027b0adb6ee03434a4246a5bf803e58a73ba..7ddbdc25753a729517ed23899c83eb808acdd50f:/src/include/xbt/parmap.hpp diff --git a/src/include/xbt/parmap.hpp b/src/include/xbt/parmap.hpp index fc8f6da80b..4e073a14a7 100644 --- a/src/include/xbt/parmap.hpp +++ b/src/include/xbt/parmap.hpp @@ -162,7 +162,7 @@ template Parmap::Parmap(unsigned num_workers, e_xbt_parmap_mode_ /* Initialize the thread pool data structure */ this->status = PARMAP_WORK; this->work_round = 0; - this->workers.reserve(num_workers); + this->workers.resize(num_workers); this->num_workers = num_workers; this->synchro = new_synchro(mode); @@ -205,7 +205,6 @@ template Parmap::~Parmap() for (unsigned i = 1; i < num_workers; i++) workers[i]->join(); - workers.clear(); delete synchro; }