首页 > 代码库 > thread.wait的一个好例子

thread.wait的一个好例子

 int main(int argc, char *argv[]) {     QCoreApplication app(argc, argv);     HelloThread thread;     thread.start();     qDebug() << "hello from GUI thread " << app.thread()->currentThreadId();     thread.wait();  // do not exit before the thread is completed!     return 0; }

http://blog.csdn.net/wsh6759/article/details/7432337

 

thread.wait的一个好例子