Hi all,
can I run multiple start() method on same QThread object ?
Simple example follows:
int main(int argc, char *argv[]){
threadHandler *TH=new threadHandler();
TH.start()
TH.start()
return app.exec();
}
int main(int argc, char *argv[]){
QCoreApplication app(argc,argv);
threadHandler *TH=new threadHandler();
TH.start()
TH.start()
return app.exec();
}
To copy to clipboard, switch view to plain text mode
This code executes the two run() methods as two serial executions.
Is this correct? Do you have experience in this?
Thanks,
Michele
Bookmarks