Class Executor

Inheritance Relationships

Derived Type

Class Documentation

class Executor

An executor abstraction mostly compatible with C++ proposal N4414.

As specified in http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0008r0.pdf

This should hopefully be compatible with whatever the C++ Executors and Schedulers group come up with as a final design, and will eventually be replaced by the standard version.

If not, this minimal interface should be easy to implement on top of whatever emerges from the standards body.

Subclassed by mir::NonBlockingExecutor

Public Functions

virtual void spawn(std::function<void()> &&work) = 0

Schedule some function to be called sometime in the future.

It is expected that this not eagerly execute, and will return before work() is executed.

Parameters:

work[in] Function to execute in Executor specified environment.

Protected Functions

virtual ~Executor() = default