Boost logo

Boost Users :

From: ZheNing Hu (adlternative_at_[hidden])
Date: 2021-06-06 13:34:01


Hi, I ran into difficulties when I was reading boost::asio http server
example[1],

I see:

    work_.push_back(
        boost::asio::require(io_context->get_executor(),
                             boost::asio::execution::outstanding_work.tracked));

I don't know what is the meaning of this code?
Or what is boost::asio::require()? I did not find useful information
to introduce it.

[1] https://www.boost.org/doc/libs/1_76_0/doc/html/boost_asio/example/cpp03/http/server2/io_context_pool.cpp

--
ZheNing Hu

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net