Proper thread termination confirmation?
Unsolved
General and Desktop
-
Hi, I have a few threads which are always active, I have overridden their
void run()
function to execute my code when required. I also have added aqDebug()
message in the threads destructor to observe when it is destroyed, this message is never printed when I am closing the application. There are no error messages as well. I got the thread ID using theQt::HANDLE QThread::currentThreadId()
and when the application is closed I can see the message ex.The thread 0x43f4 has exited with code 0 (0x0).
where the ID (0x43f4) is my thread. Is this message enough to assume that the threads are getting destroyed properly? If so, why my debug message from the destructor is not getting printed?