boost::corosio::basic_io_context::executor_type

The executor type for this context.

Synopsis

class executor_type;

Description

An executor for dispatching work to an I/O context.

The executor provides the interface for posting work items and dispatching coroutines to the associated context. It satisfies the capy::Executor concept.

Executors are lightweight handles that can be copied and compared for equality. Two executors compare equal if they refer to the same context.

Thread Safety

Distinct objects: Safe. Shared objects: Safe.

Member Functions

Name

Description

executor_type [constructor]

Constructors

context

Return a reference to the associated execution context.

dispatch

Dispatch a coroutine handle.

on_work_finished

Informs the executor that work has completed.

on_work_started

Informs the executor that work is beginning.

post

Post a coroutine for deferred execution.

running_in_this_thread

Check if the current thread is running this executor's context.

operator==

Compare two executors for equality.

operator!=

Compare two executors for inequality.

Created with MrDocs