Topic: Why joining_thread and no detaching_thread? Why not a
Author: Leo Heinsaar <leoheinsaar@gmail.com>
Date: Tue, 26 Apr 2016 01:36:53 -0700 (PDT)
Raw View
------=_Part_2420_1680117493.1461659813087
Content-Type: multipart/alternative;
boundary="----=_Part_2421_791036159.1461659813087"
------=_Part_2421_791036159.1461659813087
Content-Type: text/plain; charset=UTF-8
This is more of a question first as to why it was decided to have a
joining_thread
<http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0206r1.html> and
no detaching_thread?
Or some kind of a smart thread that takes a policy parameter to decide
whether to detach or join (dj_thread? :-)) - or, for that matter, why not
enhance the existing std::thread with an additional parameter to either
terminate, join or detach, and default to terminate for backward
compatibility, etc.?
Thanks in advance for any clarification.
--
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/61f3b26a-360d-45d9-b949-b9d0d63d96ab%40isocpp.org.
------=_Part_2421_791036159.1461659813087
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">This is more of a question first as to why it was decided =
to have a <a href=3D"http://www.open-std.org/jtc1/sc22/wg21/docs/papers/201=
6/p0206r1.html"><font face=3D"courier new, monospace">joining_thread</font>=
</a> and no <font face=3D"courier new, monospace">detaching_thread</font>?<=
div><br></div><div>Or some kind of a smart thread that takes a policy param=
eter to decide whether to detach or join (<font face=3D"courier new, monosp=
ace">dj_thread</font><font face=3D"arial, sans-serif">? :-)</font>) - or, f=
or that matter, why not enhance the existing <font face=3D"courier new, mon=
ospace">std::thread</font> with an additional parameter to either terminate=
, join or detach, and default to terminate for backward compatibility, etc.=
?</div><div><br></div><div>Thanks in advance for any clarification.</div></=
div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/61f3b26a-360d-45d9-b949-b9d0d63d96ab%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/61f3b26a-360d-45d9-b949-b9d0d63d96ab=
%40isocpp.org</a>.<br />
------=_Part_2421_791036159.1461659813087--
------=_Part_2420_1680117493.1461659813087--
.