io_context::strand 직렬화된 핸들러 실행을 제공한다. class strand 멤버 함수 이 름 설 명 context 기저 실행 컨텍스트를 얻어온다. defer 주어진 함수 개체를 호출하도록 스트랜드(strand)에 요청한다. dispatch 주어진 함수 개체를 호출하도록 스트랜드(strand)에 요청한다. — (더 이상 사용되지 않음: boost::asio::dispatch() 사용.) 주어진 핸들러를 호출하도록 스트랜드(strand)에 요청한다. on_work_finished 일부 작업이 더이상 처리되지 않은 상태가 아님을 스트랜드(strand)에 알린다. on_work_started 수행할 일부 처리되지 않은 작업이 있다는 것을 스트랜드(strand)에 알린다. post 주어진 함수 개..
strand 모든 실행기(executor) 유형에 대해 직렬화된 함수 호출을 제공한다. template class strand 유 형 이 름 설 명 inner_executor_type 기저 실행기(executor) 유형. 멤버 함수 이 름 설 명 defer 주어진 함수 개체를 호출하도록 스트랜드(strand)에게 요청한다. dispatch 주어진 함수 개체를 호출하도록 스트랜드(strand)에게 요청한다. executor get_inner_executor 기저 실행기(executor)를 얻어온다. operator= 할당 연산자. — 변환 할당 연산자. — 이동 할당 연산자. — 변환 이동 할당 연산자. post 주어진 함수 개체를 호출하도록 스트랜드(strand)에게 ..
io_context::strand::strand 생성자(constructor). strand( boost::asio::io_context & io_context); 스트랜드(strand)를 생성한다. 파라미터 이 름 설 명 io_context io_context 개체는 스트랜드(strand)가 실행 준비가 된 핸들러를 디스패치하는데 사용할 것이다. Boost.Asio 홈
strand::running_in_this_thread 스트랜드(strand)가 현재 스레드에서 실행 중인지 확인한다. bool running_in_this_thread() const; 반환 값 post(), dispatch(), defer()을 사용하여 스트랜드(strand)로 제출된 함수가 현재 스레드에서 실행중이면, true이다. 그렇지 않으면 false를 반환한다. Boost.Asio 홈