本文整理汇总了C++中Executor::async_execute方法的典型用法代码示例。如果您正苦于以下问题:C++ Executor::async_execute方法的具体用法?C++ Executor::async_execute怎么用?C++ Executor::async_execute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Executor
的用法示例。
在下文中一共展示了Executor::async_execute方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Function
typename executor_traits<Executor>::template future<
typename executor_traits<Executor>::template container<
typename std::result_of<
Function(typename executor_traits<Executor>::index_type, typename std::result_of<Factories()>::type&...)
>::type
>
>
multi_agent_async_execute_with_shared_inits_returning_default_container(std::true_type, Executor& ex, Function f, typename executor_traits<Executor>::shape_type shape, Factories... shared_factories)
{
return ex.async_execute(f, shape, shared_factories...);
} // end multi_agent_async_execute_with_shared_inits_returning_default_container()
开发者ID:harrism,项目名称:agency,代码行数:11,代码来源:multi_agent_async_execute_with_shared_inits_returning_default_container.hpp
示例2: Function
typename executor_traits<Executor>::template future<
typename executor_traits<Executor>::template container<
typename std::result_of<
Function(typename executor_traits<Executor>::index_type)
>::type
>
>
multi_agent_async_execute_returning_default_container(std::true_type, Executor& ex, Function f, typename executor_traits<Executor>::shape_type shape)
{
return ex.async_execute(f, shape);
} // end multi_agent_async_execute_returning_default_container()