首页 > 其他 > 详细

thread.wait的一个好例子

时间:2017-01-08 23:58:03      阅读:440      评论:0      收藏:0      [点我收藏+]
 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的一个好例子

原文:http://www.cnblogs.com/findumars/p/6263194.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!