asio C++ library

PrevUpHomeNext

executor

Polymorphic wrapper for executors.

class executor
Types

Name

Description

unspecified_bool_type_t

unspecified_bool_type

Member Functions

Name

Description

context

Obtain the underlying execution context.

defer

Request the executor to invoke the given function object.

dispatch

Request the executor to invoke the given function object.

executor [constructor]

Default constructor.

Construct from nullptr.

Copy constructor.

Move constructor.

Construct a polymorphic wrapper for the specified executor.

Construct a polymorphic executor that points to the same target as another polymorphic executor.

Construct a polymorphic executor that moves the target from another polymorphic executor.

Allocator-aware constructor to create a polymorphic wrapper for the specified executor.

on_work_finished

Inform the executor that some work is no longer outstanding.

on_work_started

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

operator unspecified_bool_type

Operator to test if the executor contains a valid target.

operator=

Assignment operator.



Assignment operator for nullptr_t.

Assignment operator to create a polymorphic wrapper for the specified executor.

post

Request the executor to invoke the given function object.

target

Obtain a pointer to the target executor object.

target_type

Obtain type information for the target executor object.

unspecified_bool_true [static]

~executor [destructor]

Destructor.

Friends

Name

Description

operator!=

Compare two executors for inequality.

operator==

Compare two executors for equality.

Requirements

Header: asio/executor.hpp

Convenience header: asio.hpp


PrevUpHomeNext