Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
SystemExecutionContext.hpp
1#pragma once
2
3#include "util/async/context/BasicExecutionContext.hpp"
4
5namespace util::async {
6
14public:
20 [[nodiscard]] static auto&
22 {
23 static util::async::PoolExecutionContext kSYSTEM_EXECUTION_CONTEXT{};
24 return kSYSTEM_EXECUTION_CONTEXT;
25 }
26};
27
28} // namespace util::async
A execution context that runs tasks on a system thread pool of 1 thread.
Definition SystemExecutionContext.hpp:13
static auto & instance()
Get the instance of the system execution context.
Definition SystemExecutionContext.hpp:21
This namespace implements an async framework built on top of execution contexts.
Definition AnyExecutionContext.hpp:17
BasicExecutionContext< impl::AsioPoolContext, impl::BasicStopSource, impl::PostDispatchStrategy > PoolExecutionContext
A asio::thread_pool-based execution context.
Definition BasicExecutionContext.hpp:458