Do threads 'end' themselves using core.thread?

Sean Kelly sean at invisibleduck.org
Mon Jul 22 09:55:51 PDT 2013


On Jul 22, 2013, at 9:15 AM, Ali Çehreli <acehreli at yahoo.com> wrote:
> 
> Apparently, it is possible to detach from a thread or even to start it in the detached state to begin with: "By default, a new thread is created in a joinable state, unless attr was set to create the thread in a detached state (using pthread_attr_setdetachstate(3))." But core.thread doesn't seem to provide either of those.

Nope.  The thread can't be detached early because the GC might need to operate on the thread in some way.


More information about the Digitalmars-d-learn mailing list