V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
sbldehanhan
V2EX  ›  C++

C++如何利用 future 和 promise 获取多个线程的返回值?

  •  
  •   sbldehanhan · 202 天前 · 904 次点击
    这是一个创建于 202 天前的主题,其中的信息可能已经有所发展或是发生改变。

    一个线程一个 future 吗?

    2 条回复    2023-11-19 17:16:00 +08:00
    emSaVya
        1
    emSaVya  
       202 天前
    thread pool/collectAll ?
    wgm001
        2
    wgm001  
       160 天前
    这玩意有人用?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2698 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:05 · PVG 19:05 · LAX 04:05 · JFK 07:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.