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