jeudi 24 septembre 2015

Should the function used in std::thread (c++11) have [[noreturn]]?

I expect it (std::thread construction) to be some kind of fork + execve variation on my system and once successful it would have nothing to return to. Would it be of any benefit on gcc/clang to mark the function used for the thread with [[noreturn]]? Or is it implicitly implied somehow, already?

Aucun commentaire:

Enregistrer un commentaire