mdecandia
13th April 2007, 16:53
Hi all,
can I run multiple start() method on same QThread object ?
Simple example follows:
int main(int argc, char *argv[]){
QCoreApplication app(argc,argv);
threadHandler *TH=new threadHandler();
TH.start()
TH.start()
return app.exec();
}
This code executes the two run() methods as two serial executions.
Is this correct? Do you have experience in this?
Thanks,
Michele
can I run multiple start() method on same QThread object ?
Simple example follows:
int main(int argc, char *argv[]){
QCoreApplication app(argc,argv);
threadHandler *TH=new threadHandler();
TH.start()
TH.start()
return app.exec();
}
This code executes the two run() methods as two serial executions.
Is this correct? Do you have experience in this?
Thanks,
Michele