当前位置: 首页 > news >正文

Qt之QFuture理解

结构

1
1..n
Future<T>
QFutureInterface<T>
«interface»
QFutureCallOutInterface
+void postCallOutEvent(const QFutureCallOutEvent&)
+void callOutInterfaceDisconnected()
QFutureInterfaceBase
QFutureInterfaceBasePrivate
QFutureCallOutEvent

QFutureCallOutInterface :作为QFuture处理过程中的回调

QFutureWatcher

QFutureWatcherBasePrivateQFutureCallOutInterface的实现类

QFutureWatcher<T>
QFutureWatcherBasePrivate
+ QList<QFutureCallOutEvent *> pendingCallOutEvents
+ QAtomicInt pendingResultsReady
+ int maximumPendingResultsReady
+ QAtomicInt resultAtConnected
+ bool finished
QFutureWatcherBase
-const QFutureInterfaceBase &futureInterface()
-QFutureInterfaceBase &futureInterface()
«interface»
QFutureCallOutInterface

交互时序

client QFutureInfterface QFutureInterfaceBase QFutureInterfaceBasePrivate QFutureCallOutInterface QFutureWatcherBase QFutureWatcherBasePrivate reportResult reportResultReady sendCallOut postCallOutEvent event sendCallOutEvent client QFutureInfterface QFutureInterfaceBase QFutureInterfaceBasePrivate QFutureCallOutInterface QFutureWatcherBase QFutureWatcherBasePrivate

http://www.mrgr.cn/news/34280.html

相关文章:

  • 统信服务器操作系统ade版【iostat】命令详解
  • 2024年倒计时提醒软件哪个好?倒计时提醒app
  • 寄大件快递用什么物流更便宜,寄20-200公斤大件价格对比
  • C++ 异步编程中:future与promise、packaged_task、async
  • Android对象池的深入理解和使用
  • gif怎么压缩变小一点?6种方法你快速压缩gif
  • 一文读懂HPA弹性扩展自定义指标和缩放策略
  • 【数据结构-栈】力扣844. 比较含退格的字符串
  • 更新gitignore后如何使其生效
  • 如何高效绘制ER图?
  • 2024.09.14 校招 实习 内推 面经
  • 稳定为恒定功率负载供电的 DC/DC 转换器
  • 海外博主大力推荐 Navicat Premium Lite 免费版
  • 【每天学个新注解】Day 3 Lombok注解简解(二)—@Log
  • Redis简单介绍与安装应用
  • NEMESIS: NORMALIZING THE SOFT-PROMPT VECTORS OF VISION-LANGUAGE MODELS
  • 如何在CentOS 7上升级KVM内核?
  • Fragment两种切换方式
  • 1. IP地址介绍
  • 2024年信息安全企业CRM选型与应用研究报告