asio C++ library

PrevUpHomeNext

io_context::executor_type

Executor used to submit functions to an io_context.

typedef basic_executor_type< std::allocator< void >, 0 > executor_type;
Member Functions

Name

Description

basic_executor_type [constructor]

Copy constructor.
—
Move constructor.

context

Obtain the underlying execution context.

defer

Request the io_context to invoke the given function object.

dispatch

Request the io_context to invoke the given function object.

execute

Execution function.

on_work_finished

Inform the io_context that some work is no longer outstanding.

on_work_started

Inform the io_context that it has some outstanding work to do.

operator=

Assignment operator.
—
Move assignment operator.

post

Request the io_context to invoke the given function object.

query

Query the current value of the context property.
—
Query the current value of the blocking property.
—
Query the current value of the relationship property.
—
Query the current value of the allocator property.

query [static]

Query the current value of the mapping property.
—
Query the current value of the inline_exception_handling property.
—
Query the current value of the outstanding_work property.

require

Obtain an executor with the blocking.possibly property.
—
Obtain an executor with the blocking.never property.
—
Obtain an executor with the relationship.fork property.
—
Obtain an executor with the relationship.continuation property.
—
Obtain an executor with the outstanding_work.tracked property.
—
Obtain an executor with the outstanding_work.untracked property.
—
Obtain an executor with the specified allocator property.
—
Obtain an executor with the default allocator property.

running_in_this_thread

Determine whether the io_context is running in the current thread.

~basic_executor_type [destructor]

Destructor.

Friends

Name

Description

operator!=

Compare two executors for inequality.

operator==

Compare two executors for equality.

Requirements

Header: asio/io_context.hpp

Convenience header: asio.hpp


PrevUpHomeNext