Thread will get garbage collected?

Rene Zwanenburg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 17 07:23:45 PST 2017


On Tuesday, 17 January 2017 at 08:58:33 UTC, Arun Chandrasekaran 
wrote:
> Interesting. Why doesn't the thread get GC'd in this case even 
> without any reference still active?

There will be a reference to it in druntime itself:
http://dlang.org/phobos/core_thread.html#.Thread.getThis


More information about the Digitalmars-d-learn mailing list