RESTinio
restinio
timer_common.hpp
Go to the documentation of this file.
1
/*
2
restinio
3
*/
4
9
#pragma once
10
11
#include <
restinio/tcp_connection_ctx_base.hpp
>
12
13
namespace
restinio
14
{
15
16
// A weak pointer to a context object that is shceduled to be invoked at some time point.
17
using
tcp_connection_ctx_weak_handle_t
= std::weak_ptr< tcp_connection_ctx_base_t >;
18
20
using
timer_invocation_tag_t
= std::uint32_t;
21
23
using
timer_invocation_cb_t
=
24
std::add_pointer< void (
timer_invocation_tag_t
,
tcp_connection_ctx_weak_handle_t
) >::type
25
;
26
27
}
/* namespace restinio */
restinio::timer_invocation_tag_t
std::uint32_t timer_invocation_tag_t
An invokation tag, for controlling no more actual timers in corner cases.
Definition:
timer_common.hpp:20
restinio::timer_invocation_cb_t
std::add_pointer< void(timer_invocation_tag_t, tcp_connection_ctx_weak_handle_t) >::type timer_invocation_cb_t
A pointer to invocation callback for a specific context object.
Definition:
timer_common.hpp:25
restinio
Definition:
asio_include.hpp:21
restinio::tcp_connection_ctx_weak_handle_t
std::weak_ptr< tcp_connection_ctx_base_t > tcp_connection_ctx_weak_handle_t
Alias for http connection weak handle.
Definition:
tcp_connection_ctx_base.hpp:65
tcp_connection_ctx_base.hpp
Generated by
1.8.20