Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | List of all members
util::TaskRunnerInterface Class Referenceabstract

#include <task_runner.h>

Inheritance diagram for util::TaskRunnerInterface:
[legend]

Public Member Functions

virtual ~TaskRunnerInterface ()=default
 
virtual void insert (std::function< void()> func)=0
 The callback can either be queued for later/asynchronous/threaded processing, or be executed immediately for synchronous processing. More...
 
virtual void flush ()=0
 Forces the processing of all pending events. More...
 
virtual size_t size ()=0
 Returns the number of currently pending events. More...
 

Detailed Description

Definition at line 19 of file task_runner.h.

Constructor & Destructor Documentation

◆ ~TaskRunnerInterface()

virtual util::TaskRunnerInterface::~TaskRunnerInterface ( )
virtualdefault

Member Function Documentation

◆ flush()

virtual void util::TaskRunnerInterface::flush ( )
pure virtual

Forces the processing of all pending events.

Implemented in util::ImmediateTaskRunner, and SerialTaskRunner.

◆ insert()

virtual void util::TaskRunnerInterface::insert ( std::function< void()>  func)
pure virtual

The callback can either be queued for later/asynchronous/threaded processing, or be executed immediately for synchronous processing.

Implemented in util::ImmediateTaskRunner, and SerialTaskRunner.

◆ size()

virtual size_t util::TaskRunnerInterface::size ( )
pure virtual

Returns the number of currently pending events.

Implemented in util::ImmediateTaskRunner, and SerialTaskRunner.


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