Bitcoin Core 28.99.0
P2P Digital Currency
|
#include <task_runner.h>
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... | |
Definition at line 19 of file task_runner.h.
|
virtualdefault |
|
pure virtual |
Forces the processing of all pending events.
Implemented in util::ImmediateTaskRunner, and SerialTaskRunner.
|
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.
|
pure virtual |
Returns the number of currently pending events.
Implemented in util::ImmediateTaskRunner, and SerialTaskRunner.