C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Make std::thread not joinable after thread function ends.

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sun, 18 Jun 2023 13:58:13 -0700
On Sunday, 18 June 2023 13:25:51 PDT Smith, Jim via Std-Proposals wrote:
> It would be convenient if std::thread would automatically become not
> joinable after the thread function ends.

Effectively, we already have that case because the function hasn't ended
*until* you've returned from the join. Before that, the function hasn't ended.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-06-18 20:58:15