On 05/06/2026 7:16 AM, Ali Çehreli wrote:
[Sending to the forum as well.]

On 6/4/26 3:34 AM, FinalEvilution wrote:

 > as I'd think someone other than me would have tripped over this by now.

This topic is a part of a presentation of mine at this point:

   https://youtu.be/dRORNQIB2wA?t=1735

I recommend each thread catching their threads to communicate their exit on slide 79. There is a complete program on slide 91.

The code can be made more useful by using a function template for thread entry for all thread functions instead of writing a special one like workerThread() for each thread. In fact, that's what I did in professional D code of mine.

Ali

Thread supports filtering now as of ~master aka the grave digger method.

https://github.com/dlang/dmd/blob/master/changelog/druntime.filterthrown.dd

There are examples of how to make it log + abort a thread death due to Error being thrown.

It wasn't made the default because program breakage sadly.

  • Assert in child ... FinalEvilution via Digitalmars-d-learn
    • Re: Assert ... Ali Çehreli via Digitalmars-d-learn
      • Re: Ass... FinalEvilution via Digitalmars-d-learn
        • Re:... FinalEvilution via Digitalmars-d-learn
      • Re: Ass... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
        • Re:... FinalEvilution via Digitalmars-d-learn

Reply via email to