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.