Skip to content

asio::io_context::work

詳細情報

メンバー

work()

Constructor notifies the that work is starting.

The constructor is used to inform the that some work has begun. This ensures that the object's function will not exit while the work is underway.

asio::io_context::work::work(asio::io_context &io_context)

引数

  • asio::io_context& io_context

work()

Copy constructor notifies the that work is starting.

The constructor is used to inform the that some work has begun. This ensures that the object's function will not exit while the work is underway.

asio::io_context::work::work(const work &other)

引数

  • const& other

~work()

Destructor notifies the that the work is complete.

The destructor is used to inform the that some work has finished. Once the count of unfinished work reaches zero, the object's function is permitted to exit.

asio::io_context::work::~work()

get_io_context()

Get the associated with the work.

asio::io_context & asio::io_context::work::get_io_context()

戻り値

asio::io_context&

get_io_service()

(Deprecated: Use .) Get the associated with the work.

asio::io_context & asio::io_context::work::get_io_service()

戻り値

asio::io_context&