mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com> Co-authored-by: Bart <bthomee@users.noreply.github.com>
18 lines
309 B
C++
18 lines
309 B
C++
#pragma once
|
|
|
|
namespace xrpl::NodeStore {
|
|
|
|
/** Derived classes perform scheduled tasks. */
|
|
struct Task
|
|
{
|
|
virtual ~Task() = default;
|
|
|
|
/** Performs the task.
|
|
The call may take place on a foreign thread.
|
|
*/
|
|
virtual void
|
|
performScheduledTask() = 0;
|
|
};
|
|
|
|
} // namespace xrpl::NodeStore
|