io_context::strand

Boost C++ Libraries/Boost.Asio

Boost.Asio - io_context::strand

io_context::strand 직렬화된 핸들러 실행을 제공한다. class strand 멤버 함수 이 름 설 명 context 기저 실행 컨텍스트를 얻어온다. defer 주어진 함수 개체를 호출하도록 스트랜드(strand)에 요청한다. dispatch 주어진 함수 개체를 호출하도록 스트랜드(strand)에 요청한다. — (더 이상 사용되지 않음: boost::asio::dispatch() 사용.) 주어진 핸들러를 호출하도록 스트랜드(strand)에 요청한다. on_work_finished 일부 작업이 더이상 처리되지 않은 상태가 아님을 스트랜드(strand)에 알린다. on_work_started 수행할 일부 처리되지 않은 작업이 있다는 것을 스트랜드(strand)에 알린다. post 주어진 함수 개..

Boost C++ Libraries/Boost.Asio

Boost.Asio 색인 - io_context::strand::wrap

io_context::strand::wrap (더 이상 사용되지 않음: bind_executor 사용.). 스트랜드(strand)에서 래핑된 핸들러를 자동으로 디스패치하는 새 핸들러를 생성한다. template unspecified wrap( Handler handler); [Handler] 이 함수는 호출될 때, 래핑된 핸들러를 스트랜드(strand)의 디스패치 함수에 자동으로 전달하는 새 핸들러 함수 개체를 생성하는 데 사용된다. 파라미터 이 름 설 명 handler 래핑할 핸들러이다. 스트랜드(strand)는 필요에 따라 핸들러의 복사본을 만든다. 핸들러 함수의 서명은 다음과 같다: void handler(A1 a1, ... An an); 반환 값 호출될 때 래핑된..

Boost C++ Libraries/Boost.Asio

Boost.Asio 색인 - io_context::strand::strand

io_context::strand::strand 생성자(constructor). strand( boost::asio::io_context & io_context); 스트랜드(strand)를 생성한다. 파라미터 이 름 설 명 io_context io_context 개체는 스트랜드(strand)가 실행 준비가 된 핸들러를 디스패치하는데 사용할 것이다. Boost.Asio 홈

Boost C++ Libraries/Boost.Asio

Boost.Asio 색인 - io_context::strand::running_in_this_thread

io_context::strand::running_in_this_thread 스트랜드(strand)가 현재 스레드에서 실행 중인지 확인한다. bool running_in_this_thread() const; 반환 값 post(), dispatch(), wrap()을 사용하여 스트랜드(strand)로 제출된 핸들러가 현재 스레드에서 실행중이면, true이다. 그렇지 않으면 false를 반환한다. Boost.Asio 홈

Boost C++ Libraries/Boost.Asio

Boost.Asio 색인 - io_context::strand::post

io_context::strand::post 주어진 함수 개체를 호출하도록 스트랜드(strand)에 요청한다. [1 / 2 오버로드] template void post( Function && f, const Allocator & a) const; [post] (더 이상 사용되지 않음: post 사용.) 주어진 핸들러를 호출하고 즉식 반환하도록 스트랜드(strand)에 요청한다. [2 / 2 오버로드] template DEDUCED post( LegacyCompletionHandler && handler); [LegacyCompletionHandler, DEDUCED, po..

까마귀75
'io_context::strand' 태그의 글 목록