threadman 0.1.0
Header-only C++23 managed threads, dynamic pools, futures, and executors
Loading...
Searching...
No Matches
Public Member Functions | List of all members
threadman::IExecutor Class Referenceabstract

Virtual interface for "anything that can run a `std::function<void()>`". More...

#include <executor.hpp>

Inheritance diagram for threadman::IExecutor:
Inheritance graph
[legend]

Public Member Functions

virtual ~IExecutor ()=default
 
virtual void execute (std::function< void()> task)=0
 
virtual std::string_view name () const noexcept=0
 

Detailed Description

Virtual interface for "anything that can run a `std::function<void()>`".

Constructor & Destructor Documentation

◆ ~IExecutor()

virtual threadman::IExecutor::~IExecutor ( )
virtualdefault

Member Function Documentation

◆ execute()

virtual void threadman::IExecutor::execute ( std::function< void()>  task)
pure virtual

◆ name()

virtual std::string_view threadman::IExecutor::name ( ) const
pure virtualnoexcept

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