[D-runtime] A mechanism to kill threads

Michel Fortin michel.fortin at michelf.com
Thu May 17 14:31:20 PDT 2012


Le 2012-05-16 à 19:22, Sean Kelly a écrit :

> Maybe a standalone function like:
> 
> extern (C) int thread_terminateThread(Thread t);
> 
> That would at least keep it out of the public interface for the object, and move it into the realm of really unsafe or weird stuff.  Obvious caveat still being that the app may well have been left in an invalid state.

int thread_terminateThread(string disclaimer)(Thread t) if (disclaimer == "I know it will leak and could deadlock once in a while. I have read the documentation and accepts the consequences.");

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the D-runtime mailing list