Helper class used in reference counting (doubly-linked circular list) Reference-counted smart-pointer for libpq-allocated resources. More...
#include <util.hxx>
Public Member Functions | |
refcount () | |
~refcount () | |
bool | loseref () throw () |
Drop this reference; return whether we were the last reference. More... | |
void | makeref (refcount &) throw () |
Create additional reference based on existing refcount object. More... | |
Private Member Functions | |
refcount (const refcount &) | |
Not allowed. More... | |
refcount & | operator= (const refcount &) |
Not allowed. More... | |
Private Attributes | |
refcount *volatile | m_l |
refcount *volatile *volatile | m_r |
Helper class used in reference counting (doubly-linked circular list) Reference-counted smart-pointer for libpq-allocated resources.
pqxx::internal::refcount::refcount | ( | ) |
pqxx::internal::refcount::~refcount | ( | ) |
|
private |
Not allowed.
bool pqxx::internal::refcount::loseref | ( | ) | throw () |
Drop this reference; return whether we were the last reference.
Referenced by pqxx::internal::PQAlloc< const internal::result_data, internal::freemem_result_data >::loseref().
void pqxx::internal::refcount::makeref | ( | refcount & | ) | throw () |
Create additional reference based on existing refcount object.
Referenced by pqxx::internal::PQAlloc< const internal::result_data, internal::freemem_result_data >::makeref().
|
private |
|
private |