What is safest way of force terminating a QThread without QThread::terminate()
Hi guys, what is the safest way of force terminating a thread without using the function QThread::terminate(). The documentation says this functions is dangerous and should be avoided, so what is the work around this, if I want to force terminate the thread while its still running some operation?
Re: What is safest way of force terminating a QThread without QThread::terminate()
One way would be to add a flag to your thread that it monitors, once the flag is set, you can have your thread terminate gracefully, cleaning up after it self.