[Issue 19487] Thread never detaches after spawn

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 17 11:59:25 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19487

--- Comment #1 from anonymous4 <dfj1esp02 at sneakemail.com> ---
try this:
---
void main()
{
    for (int i=0; i<1000; i++)
    {
        spawn(&thread);
    }
    thread_joinAll();
    writefln("Collect");
    GC.collect();
    Thread.sleep(10.seconds);
}
---

--


More information about the Digitalmars-d-bugs mailing list