/* 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);
for (unsigned i = 1; i < num_workers; i++)
workers[i]->join();
- workers.clear();
delete synchro;
}