io_context::basic_executor_type::running_in_this_thread io_context가 현재 스레드에서 실행 중인지 확인한다. bool running_in_this_thread() const; 반환 값 현재 스레드에서 io_context가 실행중이면, true이다. 그렇지 않으면 false를 반환한다. Boost.Asio 홈
io_context::basic_executor_type::post 주어진 함수 개체를 호출하도록 io_context에게 요청한다. template void post( Function && f, const OtherAllocator & a) const; 이 함수는 io_context에게 주어진 함수 개체를 실행하도록 요청하는데 사용된다. 함수 개체는 post() 함수 내에서 절대 실행되지 않는다. 대신 io_context에서 실행되도록 예약된다. 파리미터 이 름 설 명 f 호출될 함수 개체이다. 실행기(executor)는 필요에 따라 핸들러 개체의 복사본을 만들 수 있다. 함수 개체의 함수 서명은 다음과 같아야 한다: voi..