How to kill whole application if child thread raises an exception?

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Oct 26 07:38:10 PDT 2016


On Wednesday, 26 October 2016 at 10:03:30 UTC, dm wrote:
> Why so strange default behavior do not kill other threads in 
> case some of threads raise exception?
> But thanks anyway.

AFAIK, on posix you should join the child thread, and when you 
do, the stored exception is rethrown in the joining thread.


More information about the Digitalmars-d-learn mailing list