Loading...
Searching...
No Matches
timer_common.hpp
Go to the documentation of this file.
/*
restinio
*/
#pragma once
#include <restinio/tcp_connection_ctx_base.hpp>
namespace restinio
{
// A weak pointer to a context object that is shceduled to be invoked at some time point.
using tcp_connection_ctx_weak_handle_t = std::weak_ptr< tcp_connection_ctx_base_t >;
using timer_invocation_tag_t = std::uint32_t;
using timer_invocation_cb_t =
std::add_pointer< void ( timer_invocation_tag_t , tcp_connection_ctx_weak_handle_t ) >::type
;
} /* namespace restinio */
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
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::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
tcp_connection_ctx_base.hpp