Date: Wed, 11 Dec 2024 16:13:59 -0500
Greetings,
Given the following I came to realise there's no way in C++ to check if a thread was properly created or not (right after the equivalent C call to pthread_create()).
So I would like to suggest adding such check in joinable() call to do so.
Because under high concurrency a call to C++'s detach() can understandibly segfault.
Thanks,
--
| ||||||||
Le message ci-dessus, ainsi que les documents l'accompagnant, sont destinés uniquement aux personnes identifiées et peuvent contenir des informations privilégiées, confidentielles ou ne pouvant être divulguées. Si vous avez reçu ce message par erreur, veuillez le détruire. This communication (and/or the attachments) is intended for named recipients only and may contain privileged or confidential information which is not to be disclosed. If you received this communication by mistake please destroy all copies. |
Received on 2024-12-11 21:14:17