728x90
반응형
co_spawn
새로운 코-루틴 기반 실행 스레드를 생성한다.
template< typename Executor, typename T, typename AwaitableExecutor, typename CompletionToken = DEFAULT> DEDUCED co_spawn( const Executor & ex, awaitable< T, AwaitableExecutor > a, CompletionToken && token = DEFAULT, typename enable_if< (is_executor< Executor >::value||execution::is_executor< Executor >::value)&&is_convertible< Executor, AwaitableExecutor >::value >::type * = 0);
[Executor, AwaitableExecutor, DEFAULT, DEDUCED, co_spawn]
template< typename Executor, typename AwaitableExecutor, typename CompletionToken = DEFAULT> DEDUCED co_spawn( const Executor & ex, awaitable< void, AwaitableExecutor > a, CompletionToken && token = DEFAULT, typename enable_if< (is_executor< Executor >::value||execution::is_executor< Executor >::value)&&is_convertible< Executor, AwaitableExecutor >::value >::type * = 0);
[Executor, AwaitableExecutor, DEFAULT, DEDUCED, co_spawn]
template< typename ExecutionContext, typename T, typename AwaitableExecutor, typename CompletionToken = DEFAULT> DEDUCED co_spawn( ExecutionContext & ctx, awaitable< T, AwaitableExecutor > a, CompletionToken && token = DEFAULT, typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value &&is_convertible< typename ExecutionContext::executor_type, AwaitableExecutor >::value >::type * = 0);
[AwaitableExecutor, DEFAULT, DEDUCED, co_spawn]
[4 / 6 오버로드]
template< typename ExecutionContext, typename AwaitableExecutor, typename CompletionToken = DEFAULT> DEDUCED co_spawn( ExecutionContext & ctx, awaitable< void, AwaitableExecutor > a, CompletionToken && token = DEFAULT, typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value &&is_convertible< typename ExecutionContext::executor_type, AwaitableExecutor >::value >::type * = 0);
[AwaitableExecutor, DEFAULT, DEDUCED, co_spawn]
template< typename Executor, typename F, typename CompletionToken = DEFAULT> DEDUCED co_spawn( const Executor & ex, F && f, CompletionToken && token = DEFAULT, typename enable_if< is_executor< Executor >::value||execution::is_executor< Executor >::value >::type * = 0);
[Executor, DEFAULT, DEDUCED, co_spawn]
template< typename ExecutionContext, typename F, typename CompletionToken = DEFAULT> DEDUCED co_spawn( ExecutionContext & ctx, F && f, CompletionToken && token = DEFAULT, typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
요구 사항
일반 헤더: boost/asio/co_spawn.hpp
편의 헤더: boost/asio.hpp
Boost.Asio 홈
728x90
반응형
'Boost C++ Libraries > Boost.Asio' 카테고리의 다른 글
Boost.Asio 색인 - basic_streambuf_ref::data (0) | 2021.01.18 |
---|---|
Boost.Asio 색인 - basic_streambuf::data (0) | 2021.01.18 |
Boost.Asio 색인 - io_context::count_type (0) | 2021.01.18 |
Boost.Asio 색인 - coroutine::coroutine (0) | 2021.01.18 |
Boost.Asio 색인 - execution::relationship_t::continuation_t::continuation_t (0) | 2021.01.18 |