QT反复开启同一个线程的问题

kuaikuai38 2012-04-18 10:51:48
当使用start函数启动线程run之后,如果run线程里的程序没有运行完就再次使用start函数开启同一个run线程,那我想请问上一次的run线程会出现什么样的结果,是被打断还是等继续运行完之后再执行第二次调用?
...全文
737 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ノノ 2021-06-15
  • 打赏
  • 举报
回复

是段错误

 

情歌而已 2012-04-18
  • 打赏
  • 举报
回复
void QThread::start ( Priority priority = InheritPriority ) [slot]
Begins execution of the thread by calling run(), which should be reimplemented in a QThread subclass to contain your code. The operating system will schedule the thread according to the priority parameter. If the thread is already running, this function does nothing.

16,824

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧