Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
ImmediateBackgroundTaskRunner Class Reference

Runs callbacks synchronously and deterministically, while avoiding DEBUG_LOCKORDER false positives. More...

#include <validation.h>

Inheritance diagram for ImmediateBackgroundTaskRunner:
[legend]
Collaboration diagram for ImmediateBackgroundTaskRunner:
[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.
void flush () override
 Forces the processing of all pending events.
size_t size () override
 Returns the number of currently pending events.
Public Member Functions inherited from util::TaskRunnerInterface
virtual ~TaskRunnerInterface ()=default

Detailed Description

Runs callbacks synchronously and deterministically, while avoiding DEBUG_LOCKORDER false positives.

Definition at line 27 of file validation.h.

Member Function Documentation

◆ flush()

void ImmediateBackgroundTaskRunner::flush ( )
inlineoverridevirtual

Forces the processing of all pending events.

Implements util::TaskRunnerInterface.

Definition at line 31 of file validation.h.

◆ insert()

void ImmediateBackgroundTaskRunner::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 30 of file validation.h.

◆ size()

size_t ImmediateBackgroundTaskRunner::size ( )
inlineoverridevirtual

Returns the number of currently pending events.

Implements util::TaskRunnerInterface.

Definition at line 32 of file validation.h.


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