This file is indexed.

/usr/include/Wt/Dbo/FixedSqlConnectionPool is in libwtdbo-dev 3.3.4+dfsg-6ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// This may look like C code, but it's really -*- C++ -*-
/*
 * Copyright (C) 2010 Emweb bvba, Kessel-Lo, Belgium.
 *
 * See the LICENSE file for terms of use.
 */
#ifndef WT_DBO_FIXED_SQL_CONNECTION_POOL_H_
#define WT_DBO_FIXED_SQL_CONNECTION_POOL_H_

#include <Wt/Dbo/SqlConnectionPool>

#include <vector>

namespace Wt {
  namespace Dbo {

/*! \class FixedSqlConnectionPool Wt/Dbo/FixedSqlConnectionPool Wt/Dbo/FixedSqlConnectionPool
 *  \brief A connection pool of fixed size.
 *
 * This provides a connection pool of fixed size: its size is determined at
 * startup time, and the pool will not grow as more connections are needed.
 *
 * This is adequate when the number of threads (which need different
 * connections to work with) is also bounded, like when using a fixed
 * size thread pool. This is for example the case when used in
 * conjunction with %Wt. Note that you do not need as many connections
 * as sessions, since Session will only use a connection while
 * processing a transaction.
 *
 * \ingroup dbo
 */
class WTDBO_API FixedSqlConnectionPool : public SqlConnectionPool
{
public:
  /*! \brief Creates a fixed connection pool.
   *
   * The pool is initialized with the provided \p connection, which is
   * cloned (\p size - 1) times.
   *
   * The pool thus takes ownership of the given connection.
   */
  FixedSqlConnectionPool(SqlConnection *connection, int size);

  virtual ~FixedSqlConnectionPool();
  virtual SqlConnection *getConnection();
  virtual void returnConnection(SqlConnection *);
  virtual void prepareForDropTables() const;

private:
  struct Impl;
  Impl *impl_;
};

  }
}

#endif // WT_DBO_SQL_CONNECTION_POOL_H_