blob: 48ef89a46e0764bf038e1512f9e081b58a576493 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <pqxx/internal/callgate.hxx>
namespace pqxx
{
namespace internal
{
class reactivation_avoidance_exemption;
namespace gate
{
class PQXX_PRIVATE connection_reactivation_avoidance_exemption :
callgate<connection_base>
{
friend class pqxx::internal::reactivation_avoidance_exemption;
connection_reactivation_avoidance_exemption(reference x) : super(x) {}
int get_counter() const { return home().m_reactivation_avoidance.get(); }
void add_counter(int x) const { home().m_reactivation_avoidance.add(x); }
void clear_counter() { home().m_reactivation_avoidance.clear(); }
};
} // namespace pqxx::internal::gate
} // namespace pqxx::internal
} // namespace pqxx
|