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::async::AsyncExecutor Class Reference

Simple async executor using standard C++ facilities only. More...

#include <async_integrator.hpp>

Public Member Functions

 AsyncExecutor (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

Simple async executor using standard C++ facilities only.

This replaces the complex communication system with a lightweight standard-library-only approach suitable for C++ standard inclusion.

Definition at line 35 of file async_integrator.hpp.

Constructor & Destructor Documentation

◆ AsyncExecutor()

diffeq::async::AsyncExecutor::AsyncExecutor ( size_t  num_threads = std::thread::hardware_concurrency())
inlineexplicit

Definition at line 37 of file async_integrator.hpp.

◆ ~AsyncExecutor()

diffeq::async::AsyncExecutor::~AsyncExecutor ( )
inline

Definition at line 46 of file async_integrator.hpp.

Member Function Documentation

◆ shutdown()

void diffeq::async::AsyncExecutor::shutdown ( )
inline

Definition at line 72 of file async_integrator.hpp.

◆ submit()

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

Definition at line 51 of file async_integrator.hpp.


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