Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | List of all members
util::ImmediateTaskRunner Class Reference

#include <task_runner.h>

Inheritance diagram for util::ImmediateTaskRunner:
[legend]
Collaboration diagram for util::ImmediateTaskRunner:
[legend]

Public Member Functions

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

Detailed Description

Definition at line 42 of file task_runner.h.

Member Function Documentation

◆ flush()

void util::ImmediateTaskRunner::flush ( )
inlineoverridevirtual

Forces the processing of all pending events.

Implements util::TaskRunnerInterface.

Definition at line 46 of file task_runner.h.

◆ insert()

void util::ImmediateTaskRunner::insert ( std::function< void()>  func)
inlineoverridevirtual

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

Implements util::TaskRunnerInterface.

Definition at line 45 of file task_runner.h.

◆ size()

size_t util::ImmediateTaskRunner::size ( )
inlineoverridevirtual

Returns the number of currently pending events.

Implements util::TaskRunnerInterface.

Definition at line 47 of file task_runner.h.


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