Bitcoin Core  27.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 ()
 
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 ( )
inlinevirtual

Definition at line 22 of file task_runner.h.

Member Function Documentation

◆ flush()

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

Forces the processing of all pending events.

Implemented in SerialTaskRunner, and util::ImmediateTaskRunner.

◆ 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 SerialTaskRunner, and util::ImmediateTaskRunner.

◆ size()

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

Returns the number of currently pending events.

Implemented in SerialTaskRunner, and util::ImmediateTaskRunner.


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