This class encapsulates THD instance, controls access to the actual THD.  
 More...
#include <mysqld_thd_manager.h>
This class encapsulates THD instance, controls access to the actual THD. 
It also ensures that THD::LOCK_thd_data mutex is acquired at instantiation and released at destruction. 
 
◆ THD_ptr() [1/4]
Default class constructor. 
 
 
◆ THD_ptr() [2/4]
  
  
      
        
          | THD_ptr::THD_ptr  | 
          ( | 
          THD *  | 
          thd | ) | 
           | 
         
       
   | 
  
explicit   | 
  
 
Constructor assigns THD instance to manage and acquires THD::LOCK_thd_data mutex. 
- Parameters
 - 
  
  
 
 
 
◆ THD_ptr() [3/4]
  
  
      
        
          | THD_ptr::THD_ptr  | 
          ( | 
          THD_ptr const &  | 
           | ) | 
           | 
         
       
   | 
  
delete   | 
  
 
Delete copy constructor, THD_ptr copy is not allowed. 
 
 
◆ THD_ptr() [4/4]
      
        
          | THD_ptr::THD_ptr  | 
          ( | 
          THD_ptr &&  | 
          thd_ptr | ) | 
           | 
        
      
 
Move constructor. 
- Parameters
 - 
  
    | thd_ptr | THD_ptr instance to collect underlying THD instance.  | 
  
   
 
 
◆ ~THD_ptr()
Destructor to release underlying THD instance's control and release mutex THD::LOCK_thd_data. 
 
 
◆ get()
Access underlying THD instance. 
returns pointer to underlying THD instance. 
 
 
◆ operator bool()
  
  
      
        
          | THD_ptr::operator bool  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Check if there is an underlying THD instance. 
 
 
◆ operator!=() [1/2]
Compare underlying THD pointer value with the "nullptr". 
- Returns
 - true if underlying THD pointer value not equals nullptr. 
 
 
 
◆ operator!=() [2/2]
Compare this instance with other THD_ptr instance. 
- Parameters
 - 
  
    | thd_ptr | Other THD_ptr instance for comparison.  | 
  
   
- Returns
 - true if this instance differs from other THD_ptr instance. 
 
 
 
◆ operator*()
  
  
      
        
          | THD & THD_ptr::operator*  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Access underlying THD instance. 
returns reference to underlying THD instance. 
 
 
◆ operator->()
  
  
      
        
          | THD * THD_ptr::operator->  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Access underlying THD instance. 
returns pointer to underlying THD instance. 
 
 
◆ operator=() [1/2]
Move semantics assignment operator. 
- Parameters
 - 
  
    | thd_ptr | THD_ptr instance to collect underlying THD instance.  | 
  
   
 
 
◆ operator=() [2/2]
Delete copy operator, THD_ptr copy is not allowed. 
 
 
◆ operator==() [1/2]
  
  
      
        
          | bool THD_ptr::operator==  | 
          ( | 
          std::nullptr_t  | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Compare underlying THD pointer value with the "nullptr". 
- Returns
 - true if underlying THD pointer value equals "nullptr". 
 
 
 
◆ operator==() [2/2]
  
  
      
        
          | bool THD_ptr::operator==  | 
          ( | 
          THD const *  | 
          thd_ptr | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Compare this instance with other THD_ptr instance. 
- Parameters
 - 
  
    | thd_ptr | Other THD_ptr instance for comparison.  | 
  
   
- Returns
 - true if this instance equals other THD_ptr instance. 
 
 
 
◆ release()
      
        
          | THD * THD_ptr::release  | 
          ( | 
           | ) | 
           | 
        
      
 
Release underlying THD instance's control and release THD::LOCK_thd_data. 
- Returns
 - underlying THD instance. 
 
 
 
◆ m_underlying
The documentation for this class was generated from the following files: