Re: thread resource leaks if thread terminates with uncaught exception
Shiro Kawai <[email protected]> Sun, 12 Jan 2025 20:56:21 -1000
| Newsgroups | gmane.lisp.scheme.gauche |
|---|---|
| Message-ID | <CALN0JNHyoN78mh+XLeR+xorxu9axYLuT=PKfJ95Cz9y_sFo46A@mail.gmail.com> |
--===============1561479407674426541== Content-Type: multipart/alternative; boundary="000000000000d1a179062b90f1f3" --000000000000d1a179062b90f1f3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jan 12, 2025 at 8:35=E2=80=AFPM Jens Thiele <[email protected]> wrote: > > I still wonder about the timeout case. But it looks like one doesn't > have to join after a successful thread-terminate!. Then only a failing > thread-terminate! case might cause a problem/"died a lonely death"? > Correct. Explicit terminate! is obviously an intended behavior. Only uncaught exceptions matter, because it's either intended to be handled after join!, or an unintended exception. --000000000000d1a179062b90f1f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr">On Sun, Jan 12, 2025 at 8:35=E2=80=AFPM J= ens Thiele <<a href=3D"mailto:[email protected]">[email protected]</a>> wro= te:</div><div class=3D"gmail_quote gmail_quote_container"><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"><br> I still wonder about the timeout case. But it looks like one doesn't<br= > have to join after a successful thread-terminate!. Then only a failing<br> thread-terminate! case might cause a problem/"died a lonely death"= ;?<br></blockquote><div><br></div><div>Correct.=C2=A0 Explicit terminate! i= s obviously an intended behavior.=C2=A0 Only uncaught exceptions matter, be= cause it's either intended to be handled after join!, or an unintended = exception.</div></div></div> --000000000000d1a179062b90f1f3-- --===============1561479407674426541== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1561479407674426541== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gauche-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gauche-devel --===============1561479407674426541==--