Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
Tasks in theConcurrency Runtimeoperate in a fashion similar to `std::future`, but with some improvements such as continuations which are not yet in the C++ standard. The costs of using a task based asynchronous interface instead of completion handlers is well documented: synchronization points along the call chain of composed task operations which cannot be optimized away. See:中的任务操作方式与 `std::future` 类似,但进行了一些改进,例如 C++ 标准中尚未包含的 continuation(续体)。使用基于任务的异步接口而非完成处理程序(completion handlers)的代价已有详细记录:在组合任务操作的调用链上存在无法优化的同步点。参见:[@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3747.pdf [*A Universal Model for Asynchronous Operations]] (Kohlhoff).。