include/boost/corosio/native/native_scheduler.hpp

100.0% Lines (2/2) 100.0% Functions (2/2) -% Branches (0/0)
include/boost/corosio/native/native_scheduler.hpp
Line TLA Hits Source Code
1 //
2 // Copyright (c) 2026 Steve Gerbino
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // Official repository: https://github.com/cppalliance/corosio
8 //
9
10 #ifndef BOOST_COROSIO_NATIVE_NATIVE_SCHEDULER_HPP
11 #define BOOST_COROSIO_NATIVE_NATIVE_SCHEDULER_HPP
12
13 #include <boost/corosio/detail/scheduler.hpp>
14
15 namespace boost::corosio::detail {
16
17 class timer_service;
18
19 // Intermediary between public scheduler and concrete backends,
20 // holds cached service pointers behind the compilation firewall
21 460 struct native_scheduler : scheduler
22 {
23 460 timer_service* timer_svc_ = nullptr;
24 };
25
26 } // namespace boost::corosio::detail
27
28 #endif
29