RESTinio
Loading...
Searching...
No Matches
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
25 ;
26
27} /* namespace restinio */
std::uint32_t timer_invocation_tag_t
An invokation tag, for controlling no more actual timers in corner cases.
run_on_this_thread_settings_t< Traits > on_this_thread()
A special marker for the case when http_server must be run on the context of the current thread.
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.