mercredi 29 juin 2016

Do C++11 threads provide a way for detached threads to continue after the main thread exits?

Normally, when main() exits, all threads are killed. pthread_exit(3) says

To allow other threads to continue execution, the main thread should terminate by calling pthread_exit() rather than exit(3).

Is there an equivalent C++11 API call? Something like std::this_thread::exit(0)?

Aucun commentaire:

Enregistrer un commentaire