728x90
반응형
system_context::executor_type
컨텍스트와 연결된 실행기(executor) 유형이다.
typedef basic_system_executor< execution::blocking_t::possibly_t, execution::relationship_t::fork_t, std::allocator< void > > executor_type;
멤버 함수
이 름 | 설 명 |
basic_system_executor [constructor] |
기본 생성자 (constructor) |
context | 기저 실행 컨텍스트를 가져온다. |
defer | 시스템 실행기(executor)에 요청하여 주어진 함수 개체를 호출한다. |
dispatch | 시스템 실행기(executor)에 요청하여 주어진 함수 개체를 호출한다. |
execute | 실행 함수 |
on_work_finished | 실행기(executor)에 일부 작업이 더 이상 처리되지 않음을 알린다. |
on_work_started | 실행기(executor)에 일부 처리되지 않은 작업이 있음을 알린다. |
post | 시스템 실행기(executor)에 요청하여 주어진 함수 개체를 호출한다. |
query | 할당기(allocator) 속성의 현재 값을 쿼리한다. — 시스템 컨텍스트에 대한 수용능력(권장 작업 항목 수)을 쿼리한다. |
query [static] | 맵핑 속성의 현재 값을 쿼리한다. — 컨텍스트 속성의 현재 값을 쿼리한다. — 블럭 속성의 현재 값을 쿼리한다. — 관계 속성의 현재 값을 쿼리한다. |
require | blocking.possibly 속성을 가진 실행기(executor)를 가져온다. — blocking.always 속성을 가진 실행기(executor)를 가져온다. — blocking.never 속성을 가진 실행기(executor)를 가져온다. — relationship.continuation 속성을 가진 실행기(executor)를 가져온다. — relationship.fork 속성을 가진 실행기(executor)를 가져온다. — 주어진 할당기(allocator) 속성을 가진 실행기(executor)를 가져온다. — 기본 할당기(allocator) 속성을 가진 실행기(executor)를 가져온다. |
Friends
이 름 | 설 명 |
operator!= | 두 실행기(executor)가 다른지 비교한다. |
operator== | 두 실행기(executor)가 같은지 비교한다. |
시스템 실행기(executor)는 함수가 임의의 스레드에서 실행되도록 허용하는 실행 컨텍스트를 나타낸다. blocking.never 속성이 설정되면, 시스템 실행기(executor)는 지정되지 않은 시스템 스레드 풀에서 실행되도록 함수를 예약한다. blocking.possibly 또는 blocking.always가 설정되면, 실행기(executor)는 즉시 함수를 호출한다.
요구 사항
일반 헤더: boost/asio/system_context.hpp
편의 헤더: boost/asio.hpp
Boost.Asio 홈
728x90
반응형
'Boost C++ Libraries > Boost.Asio' 카테고리의 다른 글
Boost.Asio 색인 - windows::basic_object_handle::executor_type (0) | 2021.01.25 |
---|---|
Boost.Asio 색인 - thread_pool::executor_type (0) | 2021.01.25 |
Boost.Asio 색인 - ssl::stream::executor_type (0) | 2021.01.25 |
Boost.Asio 색인 - posix::basic_stream_descriptor::executor_type (0) | 2021.01.25 |
Boost.Asio 색인 - posix::basic_descriptor::executor_type (0) | 2021.01.25 |