vendredi 26 février 2016

Is there a way to create a new thread with space allocated for that thread, but defer the execution in c++11?

Let's say i want to create a thread, I want the necessary spaces allocated for the thread, however, i'd like to defer launching that thread. I'm working on a threadpool, so i'd like to have some threads ready(but not running) before I start the threadpool. Is there a way to do so in C++11?

Aucun commentaire:

Enregistrer un commentaire