三个类:concurrent、future 和 futurewatcher three classes: concurrent, future and FutureWatcher
发布时间
阅读量:
阅读量
1.这里先简单介绍一下QT Concurrent。
Concurrent refers to concurrent programming concepts, and QtConcurrent constitutes a namespace providing a comprehensive set of advanced API. These APIs enable developers to avoid the low-level thread primitives, such as mutexes, wait conditions, or signals. By leveraging QtConcurrent, applications automatically adjust their thread count based on the available number of processor cores. This implies that applications developed using this framework will continue to scale effectively on multi-core systems in the future.
而这里要讲的是QtConcurrent::run函数的用法。
函数原型如下:
``
全部评论 (0)
还没有任何评论哟~
