04 2017 档案
摘要:更好的方式 C++11中提供了操作多线程的高层次特性。 std::packaged_task 包装的是一个异步操作,相当与外包任务,好比我大阿里把电话客服外包给某某公司。 std::future 提供了一个访问异步操作结果的机制,这个是底层机制,在packaged_task和promise内部都有f
阅读全文
摘要:转载 http://eli.thegreenplace.net/2016/the-promises-and-challenges-of-stdasync-task-based-parallelism-in-c11/ One of the biggest and most impactful chan
阅读全文