Boost C++ Libraries/Boost.Asio

Boost.Asio 색인 - make_strand

까마귀75 2021. 2. 7. 14:17
728x90
반응형

make_strand

boost::asio::make_strand 함수는 실행기(executor)나 실행 컨텍스트에 대한 스트랜드(strand) 개체를 생성한다.

[1 / 2 오버로드] 실행기(executor)에 대한 스트랜드(strand) 개체를 생성한다.

template<
    typename Executor>
strand< Executor > make_strand(
    const Executor & ex,
    typename enable_if< is_executor< Executor >::value||execution::is_executor< Executor >::value >::type *  = 0);

[Executor, make_strand]


[2 / 2 오버로드] 실행 컨텍스트에 대한 스트랜드(strand) 개체를 생성한다.

template<
    typename ExecutionContext>
strand< typename ExecutionContext::executor_type > make_strand(
    ExecutionContext & ctx,
    typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type *  = 0);

[make_strand]

요구 사항

일반 헤더: boost/asio/strand.hpp
편의 헤더: boost/asio.hpp

Boost.Asio 홈

728x90
반응형