Interactive CLI 2.3
A cross-platform C++14 library for interactive command-line interfaces
Loading...
Searching...
No Matches
cli::Scheduler Class Referenceabstract

#include <scheduler.h>

Inheritance diagram for cli::Scheduler:

Public Member Functions

virtual ~Scheduler ()=default
virtual void Post (const std::function< void()> &f)=0
 Submits a completion token or function object for execution.

Detailed Description

A Scheduler represents an engine capable of running a task. Its method Post can be safely called from any thread to submit the task that will execute in an unspecified thread of execution as soon as possible (but in any case after the call to Post is terminated).

Definition at line 44 of file scheduler.h.

Constructor & Destructor Documentation

◆ ~Scheduler()

virtual cli::Scheduler::~Scheduler ( )
virtualdefault

Member Function Documentation

◆ Post()

virtual void cli::Scheduler::Post ( const std::function< void()> & f)
pure virtual

Submits a completion token or function object for execution.

Implemented in cli::LoopScheduler.


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