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