First big PITA in reallife D project
Kagamin
spam at here.lot
Tue Oct 19 11:59:31 PDT 2010
Andrei Alexandrescu Wrote:
> Terminating threads has always been iffy in all languages that use
> native threads. I've discussed with Sean a couple of times about ways to
> define a little protocol and API for orderly thread termination. We need
> something like a callback mechanism - atShutdown().
Why? Just call delete on the thread object and in destructor do everything you want to put in atShutdown.
More information about the Digitalmars-d
mailing list