Thread ctors/dtors

Sean Kelly sean at invisibleduck.org
Wed Apr 29 17:10:31 PDT 2009


== Quote from dsimcha (dsimcha at yahoo.com)'s article
> Would it be easy to put into core.thread a mechanism that would guarantee that
> a set of callback functions were called from any newly created thread upon
> creation, or by any thread just before termination?  Of course, by thread
> termination, I mean if the thread terminates normally because it finishes its
> job, not if it gets killed externally.

It seems like this would be easy to do in an app without modifying the runtime.
Or is there some need to hook the initialization and termination of threads you
don't own?



More information about the Digitalmars-d mailing list