Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
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

Default constructor.

Construct from nullptr.

Copy constructor.

Move constructor.

Construct a polymorphic wrapper for the specified 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

~executor

Destructor.

Friends

Name

Description

operator!=

Compare two executors for inequality.

operator==

Compare two executors for equality.

Requirements

Header: boost/asio/executor.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext