728x90
반응형
make_work_guard
executor_work_guard 개체를 생성한다.
template< typename Executor> executor_work_guard< Executor > make_work_guard( const Executor & ex, typename enable_if< is_executor< Executor >::value||execution::is_executor< Executor >::value >::type * = 0);
template< typename ExecutionContext> executor_work_guard< typename ExecutionContext::executor_type > make_work_guard( ExecutionContext & ctx, typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
template< typename T> executor_work_guard< typename associated_executor< T >::type > make_work_guard( const T & t, typename enable_if< !is_executor< T >::value &&!execution::is_executor< T >::value &&!is_convertible< T &, execution_context & >::value >::type * = 0);
template< typename T, typename Executor> executor_work_guard< typename associated_executor< T, Executor >::type > make_work_guard( const T & t, const Executor & ex, typename enable_if< is_executor< Executor >::value||execution::is_executor< Executor >::value >::type * = 0);
template< typename T, typename ExecutionContext> executor_work_guard< typename associated_executor< T, typename ExecutionContext::executor_type >::type > make_work_guard( const T & t, ExecutionContext & ctx, typename enable_if< !is_executor< T >::value &&!execution::is_executor< T >::value &&!is_convertible< T &, execution_context & >::value &&is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
요구 사항
일반 헤더: boost/asio/executor_work_guard.hpp
편의 헤더: boost/asio.hpp
Boost.Asio 홈
728x90
반응형
'Boost C++ Libraries > Boost.Asio' 카테고리의 다른 글
Boost.Asio 색인 - basic_datagram_socket::max_connections (0) | 2021.02.07 |
---|---|
Boost.Asio 색인 - execution::mapping_t::mapping_t (0) | 2021.02.07 |
Boost.Asio 색인 - make_strand (0) | 2021.02.07 |
Boost.Asio 색인 - thread_pool::make_service (0) | 2021.02.07 |
Boost.Asio 색인 - system_context::make_service (0) | 2021.02.07 |