MeVisLab Toolbox Reference
asio::SynchronousExecution Class Reference

An synchronous execution policy. More...

#include <SynchronousExecution.h>

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

Public Member Functions

void execute (std::function< void()> callable) override
 
- Public Member Functions inherited from asio::ExecutionPolicy
virtual ~ExecutionPolicy ()=default
 

Detailed Description

An synchronous execution policy.

This class implements the asio::ExecutionPolicy interface by executing the given callable immediately.

Synopsis:

auto policy = asio::SynchronousExecution(context);
auto callable = [] {
std::cout << "Hello, world!\n";
};
policy->execute(callable); // callable synchronously executed here
An synchronous execution policy.

Definition at line 25 of file SynchronousExecution.h.

Member Function Documentation

◆ execute()

void asio::SynchronousExecution::execute ( std::function< void()>  callable)
overridevirtual

Implements asio::ExecutionPolicy.


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