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

Runs task() synchronously on the calling thread. More...

#include <executor.hpp>

Inheritance diagram for threadman::InlineExecutor:
Inheritance graph
[legend]
Collaboration diagram for threadman::InlineExecutor:
Collaboration graph
[legend]

Public Member Functions

void execute (const std::function< void()> task) override
 
std::string_view name () const noexcept override
 
- Public Member Functions inherited from threadman::IExecutor
virtual ~IExecutor ()=default
 

Static Public Member Functions

static InlineExecutorinstance () noexcept
 
static const comms::DisplayInfo & display_info ()
 

Detailed Description

Runs task() synchronously on the calling thread.

Useful when you want .then(...) to fire on whatever thread satisfies the source future. Singleton — there is only one instance.

Member Function Documentation

◆ display_info()

static const comms::DisplayInfo & threadman::InlineExecutor::display_info ( )
inlinestatic

◆ execute()

void threadman::InlineExecutor::execute ( const std::function< void()>  task)
inlineoverridevirtual

Implements threadman::IExecutor.

◆ instance()

static InlineExecutor & threadman::InlineExecutor::instance ( )
inlinestaticnoexcept

◆ name()

std::string_view threadman::InlineExecutor::name ( ) const
inlineoverridevirtualnoexcept

Implements threadman::IExecutor.


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