Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Stop QThread without event loop
Q139 last edited by Q139
Are there safer alternatives to
terminate();to stop Qthreads that have no event loops?
On windows os have not managed to crash but with linux it crashes application always if using
Threads are continiualy looped under while loops.
One way may be to have condition for while loop to end looping but the loop is long and it would be better if instant stop.
If you have long loop function break it in smaller logical parts and insert checks for the break condition variable between these logical parts.