|
threadman 0.1.0
Header-only C++23 managed threads, dynamic pools, futures, and executors
|
Runs task() synchronously on the calling thread.
More...
#include <executor.hpp>


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 InlineExecutor & | instance () noexcept |
| static const comms::DisplayInfo & | display_info () |
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.
|
inlinestatic |
|
inlineoverridevirtual |
Implements threadman::IExecutor.
|
inlinestaticnoexcept |
|
inlineoverridevirtualnoexcept |
Implements threadman::IExecutor.