connection-pool.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2008 Maciej Sobczak
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 //
7 
8 #ifndef SOCI_CONNECTION_POOL_H_INCLUDED
9 #define SOCI_CONNECTION_POOL_H_INCLUDED
10 
11 #include "soci-config.h"
12 // std
13 #include <cstddef>
14 
15 namespace soci
16 {
17 
18 class session;
19 
21 {
22 public:
23  explicit connection_pool(std::size_t size);
24  ~connection_pool();
25 
26  session & at(std::size_t pos);
27 
28  std::size_t lease();
29  bool try_lease(std::size_t & pos, int timeout);
30  void give_back(std::size_t pos);
31 
32 private:
35 };
36 
37 }
38 
39 #endif // SOCI_CONNECTION_POOL_H_INCLUDED
#define SOCI_DECL
Definition: soci-config.h:31
connection_pool_impl * pimpl_


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40