C++ (Qt)void MyThread::run(){ printf("Start thread! %d\n",threadID); terminate();}
C++ (Qt)MyThread::~MyThread(){ quit(); wait();} void MyThread::run(){ printf("Start thread! %d\n",threadID); this->deleteLater();}