RESTinio
Loading...
Searching...
No Matches
restinio
impl
executor_wrapper.hpp
Go to the documentation of this file.
1
/*
2
restinio
3
*/
4
8
9
#pragma once
10
11
12
namespace
restinio
13
{
14
15
namespace
impl
16
{
17
18
//
19
// executor_wrapper_t
20
//
21
23
template
<
typename
Executor >
24
class
executor_wrapper_t
25
{
26
public
:
27
template
<
typename
Init_Executor >
28
executor_wrapper_t
( Init_Executor && init_executor )
29
:
m_executor
{ std::forward< Init_Executor >( init_executor ) }
30
{}
31
32
virtual
~executor_wrapper_t
() =
default
;
33
35
Executor &
get_executor
() noexcept {
return
m_executor
; }
36
37
private
:
39
Executor
m_executor
;
40
};
41
42
43
}
/* namespace impl */
44
45
}
/* namespace restinio */
restinio::impl::executor_wrapper_t::get_executor
Executor & get_executor() noexcept
An executor for callbacks on async operations.
Definition
executor_wrapper.hpp:35
restinio::impl::executor_wrapper_t::~executor_wrapper_t
virtual ~executor_wrapper_t()=default
restinio::impl::executor_wrapper_t< typename Traits::strand_t >::m_executor
typename Traits::strand_t m_executor
Definition
executor_wrapper.hpp:39
restinio::impl::executor_wrapper_t::executor_wrapper_t
executor_wrapper_t(Init_Executor &&init_executor)
Definition
executor_wrapper.hpp:28
restinio::impl
Definition
asio_include.hpp:150
restinio
Definition
asio_include.hpp:21
Generated by
1.13.2