[Issue 4307] spawn()'ed thread doesn't terminate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 25 11:34:37 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=4307



--- Comment #12 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-01-25 11:32:30 PST ---
I don't know exactly what the GC requires with regards to threads, but when I
was talking about starting a thread as detached, I meant detached in the
pthreads sense, not the GC sense, like core.thread generally talks about with
functions like thread_detachThis(). Spawned threads obviously need to be
attached to the GC. The problem is that they can't have to be joined unless
there's somehow a thread somewhere which cleans them up. Spawned threads are
essentially supposed to clean themselves up and go away when they terminate,
and that essentially means that they need to be detached in the pthread sense,
since the programmer isn't going to have the parent thread join it when it's
done.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list