阅读背景:

Why C++ async run sequentially without future?

来源:互联网 
#include <future>
#include <iostream>

void main()
{
    std::async(std::launch::async,[] {std::cout << "async..." << std::endl; while (1);});
    std::cout << "runing main..." << std::endl;
}
#include <future>
#include <iostream>

void mai



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: