DiffEq - Modern C++ ODE Integration Library 1.0.0
High-performance C++ library for solving ODEs with async signal processing
Loading...
Searching...
No Matches
diffeq::realtime::CustomExecutor Class Reference

Custom executor for async operations when std::execution is not available. More...

#include <realtime_integrator.hpp>

Public Member Functions

 CustomExecutor (size_t num_threads=std::thread::hardware_concurrency())
 
template<typename F >
auto submit (F &&func) -> std::future< std::invoke_result_t< F > >
 
void shutdown ()
 

Detailed Description

Custom executor for async operations when std::execution is not available.

Definition at line 89 of file realtime_integrator.hpp.

Constructor & Destructor Documentation

◆ CustomExecutor()

diffeq::realtime::CustomExecutor::CustomExecutor ( size_t  num_threads = std::thread::hardware_concurrency())
inline

Definition at line 91 of file realtime_integrator.hpp.

◆ ~CustomExecutor()

diffeq::realtime::CustomExecutor::~CustomExecutor ( )
inline

Definition at line 99 of file realtime_integrator.hpp.

Member Function Documentation

◆ shutdown()

void diffeq::realtime::CustomExecutor::shutdown ( )
inline

Definition at line 126 of file realtime_integrator.hpp.

◆ submit()

template<typename F >
auto diffeq::realtime::CustomExecutor::submit ( F &&  func) -> std::future<std::invoke_result_t<F>>
inline

Definition at line 104 of file realtime_integrator.hpp.


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