asio C++ library

PrevUpHomeNext

executor_work

An object of type executor_work controls ownership of executor work within a scope.

template<
    typename Executor>
class executor_work
Types

Name

Description

executor_type

The underlying executor type.

Member Functions

Name

Description

executor_work

Constructs a executor_work object for the specified executor.

Copy constructor.

Move constructor.

get_executor

Obtain the associated executor.

owns_work

Whether the executor_work object owns some outstanding work.

reset

Indicate that the work is no longer outstanding.

~executor_work

Destructor.

Requirements

Header: asio/executor_work.hpp

Convenience header: asio.hpp


PrevUpHomeNext