20 #ifndef RIPPLE_NODESTORE_TASKQUEUE_H_INCLUDED
21 #define RIPPLE_NODESTORE_TASKQUEUE_H_INCLUDED
23 #include <ripple/core/Stoppable.h>
24 #include <ripple/core/impl/Workers.h>
void processTask(int instance) override
Perform a task.
std::queue< std::function< void()> > tasks_
Called to perform tasks as needed.
Provides an interface for starting and stopping.
void addTask(std::function< void()> task)
Adds a task to the queue.
A group of threads that process tasks.
TaskQueue(Stoppable &parent)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
void onStop() override
Override called when the stop notification is issued.