mardi 22 septembre 2020

Does std::thread make any guarantee about what's happened when its constructor returns?

If you call one of the nonempty std::thread constructors, is there any guarantee about the state of the thread when the constructor returns (assume the thread start-routine has a long lifespan)? Do you know whether the thread has actually started (i.e. its start-routine has been entered)?

Aucun commentaire:

Enregistrer un commentaire