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