It might be possible to send an exception to a thread and kill it that way. In many cases it would be enough if the thread got killed on backjumps/functioncalls/whereever other stuff are checked as well...
/ Mirar
Previous text:
2004-08-11 15:35: Subject: Re: killing threads
On Tue, 10 Aug 2004, Ken wrote:
Hello,
In a multi-threaded app, is it possible to kill a thread through means other than the starting function returning?
No, and the reason is that it is nontrivial to clean up the resources held by the killed thread.
Hmm... I guess it'd be possible to let check_threads_etc() throw an error of severity level THROW_THREAD_KILLED. Feel free to experiment.
I've tried using the kill() function, but all the signals cause the entire app to die.
Thanks for any input!
-Ken
-- Henrik Grubbström grubba@roxen.com Roxen Internet Software AB
/ Brevbäraren