Date: Wed, 11 Dec 2024 17:11:24 -0500
Sorry for the confusion but I'm not using pthread_create directly but std::thread() does. All the C++ thread calls use the underlying pthread library.
--
| ||||||||
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. |
On Dec 11, 2024, at 4:47 PM, Andrey Semashev via Std-Proposals <std-proposals_at_[hidden]> wrote:
On 12/12/24 00:30, Phil Bouchard via Std-Proposals wrote:You're right, it's supposed to throw an exception. So the problem is inthe pthread library in the pthread_detach() call itself more specifically.You see, under high concurrency I'm creating simple threads followedimmediately by detach(). And very rarely that call crashes.I'm really surprised it crashes given I assumed libpthread was the mosttested library of all time.
Are you checking whether the pthread_create call succeeded?
--
Std-Proposals mailing list
Std-Proposals_at_[hidden]
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
Received on 2024-12-11 22:11:40