Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-04-09 08:28:00

0001 //
0002 // Copyright (c) 2019-2024 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 <memory>
0014 
0015 namespace boost {
0016 namespace mysql {
0017 
0018 class pooled_connection;
0019 class any_connection;
0020 
0021 namespace detail {
0022 
0023 struct io_traits;
0024 
0025 template <class IoTraits>
0026 class basic_connection_node;
0027 
0028 template <class IoTraits, class ConnectionWrapper>
0029 class basic_pool_impl;
0030 
0031 using connection_node = basic_connection_node<io_traits>;
0032 using pool_impl = basic_pool_impl<io_traits, pooled_connection>;
0033 
0034 BOOST_MYSQL_DECL void return_connection(
0035     std::shared_ptr<pool_impl> pool,
0036     connection_node& node,
0037     bool should_reset
0038 ) noexcept;
0039 BOOST_MYSQL_DECL any_connection& get_connection(connection_node& node) noexcept;
0040 
0041 }  // namespace detail
0042 }  // namespace mysql
0043 }  // namespace boost
0044 
0045 #endif