dimanche 19 avril 2015

I'm trying to fill my vector:



...
auto f = std::bind(&ScheduledExecutor::complete_after, std::placeholders::_1, std::placeholders::_2);
threadPoolVector.push_back(std::thread(f, this, delay));
...


How can I detach adding thread before push it to the vector?


Aucun commentaire:

Enregistrer un commentaire