How Stop Worker Thread if Owner Thread is Finished?

Imperatorn johan_forsberg_86 at hotmail.com
Tue Oct 27 08:02:45 UTC 2020


On Tuesday, 27 October 2020 at 00:46:48 UTC, Marcone wrote:
> Because when the main thread is completed the worker thread 
> continues to run.

Please provide a code example. It's much easier to reason about.

Are you creating a thread from a thread and want the 2nd spawned 
thread to be terminated when the 1st thread terminates?


More information about the Digitalmars-d-learn mailing list