Re: QThread - trying to kill a qthread synchronously
Originally Posted by lhdamiani
The problem starts because i need to have a 'kill button' (the user might just want to kill it since he can sometimes just change parameters and start a new one after realizing things are not going the way he wanted). I also know that this is not so recommended, the thread should never be killed/terminate - it should terminate itself - the problem here is that this heavy mathematical function isn't mine. It's legacy code and I don't have permissions to change anything inside this function.
Then you need to run that in a separate process.
Child processes can be killed without negatively affecting the parent process.
Bookmarks