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