MeVisLab Toolbox Reference
asio::ExecutionPolicy Class Referenceabstract

Abstract base class for all asio::ExecutionPolicy derivatives. More...

#include <ExecutionPolicy.h>

Inheritance diagram for asio::ExecutionPolicy:
asio::AsynchronousExecution asio::SynchronousExecution

Public Member Functions

virtual ~ExecutionPolicy ()=default
 
virtual void execute (std::function< void()> callable)=0
 

Detailed Description

Abstract base class for all asio::ExecutionPolicy derivatives.

It defines an interface to execute a given callable in a way defined by the implementation of this interface.

Synopsis:

{
public:
void execute(std::function<void()> callable) override
{
std::this_thread::sleep_for(std::chrono::milliseconds(100));
}
}
Abstract base class for all asio::ExecutionPolicy derivatives.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.

See also asio::AsynchronousExecution and asio::SynchronousExecution for implementations.

Definition at line 34 of file ExecutionPolicy.h.

Constructor & Destructor Documentation

◆ ~ExecutionPolicy()

virtual asio::ExecutionPolicy::~ExecutionPolicy ( )
virtualdefault

Member Function Documentation

◆ execute()

virtual void asio::ExecutionPolicy::execute ( std::function< void()> callable)
pure virtual

The documentation for this class was generated from the following file: