Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:39:14

0001 //
0002 // Copyright (c) 2019-2025 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 
0008 #ifndef BOOST_MYSQL_DETAIL_CONNECTION_POOL_FWD_HPP
0009 #define BOOST_MYSQL_DETAIL_CONNECTION_POOL_FWD_HPP
0010 
0011 #include <boost/mysql/detail/config.hpp>
0012 
0013 #include <chrono>
0014 
0015 namespace boost {
0016 namespace mysql {
0017 
0018 class pooled_connection;
0019 class any_connection;
0020 
0021 namespace detail {
0022 
0023 template <class ConnectionType, class ClockType>
0024 class basic_connection_node;
0025 
0026 template <class ConnectionType, class ClockType, class ConnectionWrapper>
0027 class basic_pool_impl;
0028 
0029 using connection_node = basic_connection_node<any_connection, std::chrono::steady_clock>;
0030 using pool_impl = basic_pool_impl<any_connection, std::chrono::steady_clock, pooled_connection>;
0031 
0032 BOOST_MYSQL_DECL void return_connection(pool_impl& pool, connection_node& node, bool should_reset) noexcept;
0033 BOOST_MYSQL_DECL any_connection& get_connection(connection_node& node) noexcept;
0034 
0035 }  // namespace detail
0036 }  // namespace mysql
0037 }  // namespace boost
0038 
0039 #endif