MySQL 9.0.0
Source Code Documentation
Thd_creator Class Reference

This helper class is used for either selecting a previous THD or if it's missing, create a new THD. More...

Public Member Functions

 Thd_creator (THD *thd)
 
THDoperator() ()
 Returns a THD handle either by creating a new one or by returning a previously created THD. More...
 
 ~Thd_creator ()
 Automatically frees any THD handle created by this class. More...
 

Private Attributes

THDm_thd
 
THDm_tmp_thd
 

Detailed Description

This helper class is used for either selecting a previous THD or if it's missing, create a new THD.

Constructor & Destructor Documentation

◆ Thd_creator()

Thd_creator::Thd_creator ( THD thd)
inline

◆ ~Thd_creator()

Thd_creator::~Thd_creator ( )
inline

Automatically frees any THD handle created by this class.

Member Function Documentation

◆ operator()()

THD * Thd_creator::operator() ( )
inline

Returns a THD handle either by creating a new one or by returning a previously created THD.

Member Data Documentation

◆ m_thd

THD* Thd_creator::m_thd
private

◆ m_tmp_thd

THD* Thd_creator::m_tmp_thd
private

The documentation for this class was generated from the following file: