Do threads 'end' themselves using core.thread?

Ali Çehreli acehreli at yahoo.com
Sat Jul 20 21:43:54 PDT 2013


On 07/20/2013 06:04 PM, Alex Horvat wrote:

 > On Saturday, 20 July 2013 at 20:36:29 UTC, Ali Çehreli wrote:

 >>     thread_joinAll();

 > What happens if I don't call thread join? (My thread is just a timer to
 > hide a bit of text, so I just create it, forget about it and continue
 > with the main thread)
 > Will the thread still dispose of itself in this situation?

When the parent thread terminates the child processes terminate as well. 
Join is only for when the parent wants to wait for the child to finish.

Ali



More information about the Digitalmars-d-learn mailing list